Add: -lpthread for ppc / ppc64

Issue: #306

[ci ckip]
fix-635
Gert-Jan Timmer 2018-05-30 15:12:53 +02:00
parent 25ecb14adf
commit a3114e1a2c
2 changed files with 28 additions and 0 deletions

14
sqlite3_ppc.go Normal file
View File

@ -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"

14
sqlite3_ppc64.go Normal file
View File

@ -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"