aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGert-Jan Timmer <gjr.timmer@gmail.com>2018-05-30 15:12:53 +0200
committerGert-Jan Timmer <gjr.timmer@gmail.com>2018-06-28 11:44:40 +0200
commita3114e1a2cd3cae81f827ddff387b3cb344b9036 (patch)
treef6d459842d456aa1eeda7a3bc81299b12d8cfbf9
parentAdd: OpenBSD (diff)
downloadgolite-a3114e1a2cd3cae81f827ddff387b3cb344b9036.tar.gz
golite-a3114e1a2cd3cae81f827ddff387b3cb344b9036.tar.xz
fix/306
Add: -lpthread for ppc / ppc64 Issue: #306 [ci ckip]
-rw-r--r--sqlite3_ppc.go14
-rw-r--r--sqlite3_ppc64.go14
2 files changed, 28 insertions, 0 deletions
diff --git a/sqlite3_ppc.go b/sqlite3_ppc.go
new file mode 100644
index 0000000..06ff0f2
--- /dev/null
+++ b/sqlite3_ppc.go
@@ -0,0 +1,14 @@
+// Copyright (C) 2014 Yasuhiro Matsumoto <mattn.jp@gmail.com>.
+//
+// Use of this source code is governed by an MIT-style
+// license that can be found in the LICENSE file.
+
+// +build !windows
+
+package sqlite3
+
+/*
+#cgo CFLAGS: -I.
+#cgo LDFLAGS: -ldl -lpthread
+*/
+import "C"
diff --git a/sqlite3_ppc64.go b/sqlite3_ppc64.go
new file mode 100644
index 0000000..06ff0f2
--- /dev/null
+++ b/sqlite3_ppc64.go
@@ -0,0 +1,14 @@
+// Copyright (C) 2014 Yasuhiro Matsumoto <mattn.jp@gmail.com>.
+//
+// Use of this source code is governed by an MIT-style
+// license that can be found in the LICENSE file.
+
+// +build !windows
+
+package sqlite3
+
+/*
+#cgo CFLAGS: -I.
+#cgo LDFLAGS: -ldl -lpthread
+*/
+import "C"