diff options
author | Stéphane Graber <stgraber@ubuntu.com> | 2015-03-11 15:20:07 -0400 |
---|---|---|
committer | Stéphane Graber <stgraber@ubuntu.com> | 2015-03-11 16:20:52 -0400 |
commit | e688f0a8eb3db91c7cd1bf0925bac5bdf951a553 (patch) | |
tree | 96543712a8a18e8a35cc38c75db8b9c48766cd68 /sqlite3.go | |
parent | Rename sqlite3.{c,h} to sqlite3-binding.{c,h} (diff) | |
download | golite-e688f0a8eb3db91c7cd1bf0925bac5bdf951a553.tar.gz golite-e688f0a8eb3db91c7cd1bf0925bac5bdf951a553.tar.xz |
Link against pthread
This is required by gccgo because of the pthread_mutex_trylock symbol.
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Diffstat (limited to 'sqlite3.go')
-rw-r--r-- | sqlite3.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -9,6 +9,7 @@ package sqlite3 #cgo CFLAGS: -std=gnu99 #cgo CFLAGS: -DSQLITE_ENABLE_RTREE -DSQLITE_THREADSAFE #cgo CFLAGS: -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS +#cgo LDFLAGS: -lpthread #include <sqlite3-binding.h> #include <stdlib.h> #include <string.h> |