aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sqlite3.go1
-rw-r--r--sqlite3_other.go2
-rw-r--r--sqlite3_windows.go1
3 files changed, 2 insertions, 2 deletions
diff --git a/sqlite3.go b/sqlite3.go
index edf3663..4cdc4d5 100644
--- a/sqlite3.go
+++ b/sqlite3.go
@@ -9,7 +9,6 @@ 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>
diff --git a/sqlite3_other.go b/sqlite3_other.go
index 54b6c7a..8d98b4a 100644
--- a/sqlite3_other.go
+++ b/sqlite3_other.go
@@ -9,6 +9,6 @@ package sqlite3
/*
#cgo CFLAGS: -I.
#cgo linux LDFLAGS: -ldl
-#cgo CFLAGS: -DSQLITE_ENABLE_RTREE -DSQLITE_THREADSAFE
+#cgo LDFLAGS: -lpthread
*/
import "C"
diff --git a/sqlite3_windows.go b/sqlite3_windows.go
index f47272d..abc8384 100644
--- a/sqlite3_windows.go
+++ b/sqlite3_windows.go
@@ -2,6 +2,7 @@
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
+// +build windows
package sqlite3