Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gosqlite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gosqlite
Commits
29cd8410
Commit
29cd8410
authored
Mar 19, 2018
by
gwenn
Committed by
GitHub
Mar 19, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15 from navytux/y/pkgconfig
Switch to pkg-config to detect libsqlite3 CFLAGS/LDFLAGS
parents
e9894afa
355427a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
README.md
README.md
+2
-1
sqlite.go
sqlite.go
+2
-3
No files found.
README.md
View file @
29cd8410
...
...
@@ -29,7 +29,8 @@ $ cp ~/Downloads/sqlite-amalgamation-xxx/sqlite3.{c,h} $GOPATH/src/github.com/gw
-
patch sqlite.go file
```
-#cgo LDFLAGS: -lsqlite3
-#cgo linux freebsd pkg-config: sqlite3
-#cgo !linux,!freebsd LDFLAGS: -lsqlite3
+#cgo CFLAGS: -I.
+#cgo CFLAGS: -DSQLITE_ENABLE_COLUMN_METADATA=1
```
...
...
sqlite.go
View file @
29cd8410
...
...
@@ -6,9 +6,8 @@
package
sqlite
/*
#cgo LDFLAGS: -lsqlite3
#cgo freebsd LDFLAGS: -lsqlite3 -L/usr/local/lib
#cgo freebsd CFLAGS: -I/usr/local/include
#cgo linux freebsd pkg-config: sqlite3
#cgo !linux,!freebsd LDFLAGS: -lsqlite3
#include <sqlite3.h>
#include <stdlib.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment