diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2015-03-12 18:43:55 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2015-03-12 18:43:55 +0900 |
commit | 308067797b0fcce4ca06362580dc6db77c1bfeda (patch) | |
tree | 19e0f996aeb0a34fe7d4a55af455554f136f8515 | |
parent | Merge pull request #183 from stgraber/master (diff) | |
download | golite-308067797b0fcce4ca06362580dc6db77c1bfeda.tar.gz golite-308067797b0fcce4ca06362580dc6db77c1bfeda.tar.xz |
Apply -lpthread withou windows.
Diffstat (limited to '')
-rw-r--r-- | sqlite3.go | 1 | ||||
-rw-r--r-- | sqlite3_other.go | 2 | ||||
-rw-r--r-- | sqlite3_windows.go | 1 |
3 files changed, 2 insertions, 2 deletions
@@ -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 |