Skip to content

Commit 3526997

Browse files
committed
Added FAQ item for compile error -fPIC
Closes mattn#120
1 parent 92e4da0 commit 3526997

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,20 @@ go build --tags "icu json1 fts5 secure_delete"
120120
connection to this string will point to the same in-memory database. See
121121
[#204](https://github.com/mattn/go-sqlite3/issues/204) for more info.
122122

123+
- Compile error: `can not be used when making a shared object; recompile with -fPIC`
124+
125+
When receiving a compile time error referencing recompile with `-FPIC` then you
126+
are probably using a hardend system.
127+
128+
You can copile the library on a hardend system with the following command.
129+
130+
```bash
131+
go build -ldflags '-extldflags=-fno-PIC'
132+
```
133+
134+
More details see [#120](https://github.com/mattn/go-sqlite3/issues/120)
135+
136+
123137
# License
124138

125139
MIT: http://mattn.mit-license.org/2012

0 commit comments

Comments
 (0)