From a3114e1a2cd3cae81f827ddff387b3cb344b9036 Mon Sep 17 00:00:00 2001 From: Gert-Jan Timmer Date: Wed, 30 May 2018 15:12:53 +0200 Subject: [PATCH] fix/306 Add: -lpthread for ppc / ppc64 Issue: #306 [ci ckip] --- sqlite3_ppc.go | 14 ++++++++++++++ sqlite3_ppc64.go | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 sqlite3_ppc.go create mode 100644 sqlite3_ppc64.go 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 . +// +// 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 . +// +// 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"