From 308067797b0fcce4ca06362580dc6db77c1bfeda Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Thu, 12 Mar 2015 18:43:55 +0900 Subject: [PATCH] Apply -lpthread withou windows. --- sqlite3.go | 1 - sqlite3_other.go | 2 +- sqlite3_windows.go | 1 + 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 #include #include 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