Skip to content

Commit

Permalink
Added FAQ item for compile error -fPIC
Browse files Browse the repository at this point in the history
Closes mattn#120
  • Loading branch information
gjrtimmer committed May 26, 2018
1 parent 92e4da0 commit 3526997
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,20 @@ go build --tags "icu json1 fts5 secure_delete"
connection to this string will point to the same in-memory database. See
[#204](https://github.com/mattn/go-sqlite3/issues/204) for more info.

- Compile error: `can not be used when making a shared object; recompile with -fPIC`

When receiving a compile time error referencing recompile with `-FPIC` then you
are probably using a hardend system.

You can copile the library on a hardend system with the following command.

```bash
go build -ldflags '-extldflags=-fno-PIC'
```

More details see [#120](https://github.com/mattn/go-sqlite3/issues/120)


# License

MIT: http://mattn.mit-license.org/2012
Expand Down

0 comments on commit 3526997

Please sign in to comment.