aboutsummaryrefslogtreecommitdiff
path: root/sqlite3.go
diff options
context:
space:
mode:
authorStéphane Graber <stgraber@ubuntu.com>2015-03-11 15:20:07 -0400
committerStéphane Graber <stgraber@ubuntu.com>2015-03-11 16:20:52 -0400
commite688f0a8eb3db91c7cd1bf0925bac5bdf951a553 (patch)
tree96543712a8a18e8a35cc38c75db8b9c48766cd68 /sqlite3.go
parentRename sqlite3.{c,h} to sqlite3-binding.{c,h} (diff)
downloadgolite-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.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/sqlite3.go b/sqlite3.go
index 4cdc4d5..edf3663 100644
--- a/sqlite3.go
+++ b/sqlite3.go
@@ -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>