We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Thanks for go-sqlite3!
It is difficult to find documentation on how to reference a custom build sqlite3 library (EG: libsqlcipher-osx.a)
Currently I can use such library if I edit sqlite3.go and add:
#cgo CFLAGS: -I/Development/sqlcipher/sqlcipher-static-osx/include #cgo LDFLAGS: /Development/sqlcipher/sqlcipher-static-osx/osx-libs/libsqlcipher-osx.a -framework Security -framework Foundation
and build with: go build -tags libsqlite3 -v -ldflags "-s -w"
go build -tags libsqlite3 -v -ldflags "-s -w"
However this requires a very specific change to the package and bad practice.
How do we specify these LD and C flags without modifying the package?
The text was updated successfully, but these errors were encountered:
You can use CGO_CFLAGS and CGO_LDFLAGS environment variables.
Sorry, something went wrong.
Update documentation
4a90a03
Compile Section Closes mattn#175 Compile Section Closes mattn#201 Compile Section Closes mattn#206 Compile Section Closes mattn#404 Compile Section Closes mattn#217 Compile Section Closes mattn#224 Compile Section Closes mattn#234 Compile Section Closes mattn#242 Feature table Closes mattn#255 Description Section Closes mattn#232 Golang:1.6 not supported Closes mattn#272 Golang:1.5 not supported + compilation section Closes mattn#283 usleep Implemented Closes mattn#285 FAQ Section Closes mattn#289 Compile Section closes mattn#295 FAQ Section Closes mattn#305 PR339 Closes mattn#318 mattn#321 Compilation Section Closes mattn#341 PR407 Closes mattn#364 Feature `sqlite_vtable` Closes mattn#393 Compile Section Closes mattn#416 sqlite_trace feature Closes mattn#433 Compilation Section Closes mattn#435 Compilation Section Closes mattn#443 Golang:1.6 Not Supported Closes mattn#445 Compilation Section Closes mattn#451 Compilation Section Closes mattn#467 Compilation Section Closes mattn#491 Compilation Section Closes mattn#495 Compilation Section Closes mattn#505 Compilation Section Closes mattn#557 Compilation Section Closes mattn#560
c9394b1
No branches or pull requests
Thanks for go-sqlite3!
It is difficult to find documentation on how to reference a custom build sqlite3 library (EG: libsqlcipher-osx.a)
Currently I can use such library if I edit sqlite3.go and add:
and build with:
go build -tags libsqlite3 -v -ldflags "-s -w"
However this requires a very specific change to the package and bad practice.
How do we specify these LD and C flags without modifying the package?
The text was updated successfully, but these errors were encountered: