mirror of https://github.com/mattn/go-sqlite3.git
Use sqlite amalgamation source on all platforms
This removes the need for linking against the sqlite3 dynamic library and provides a more standalone go library
This commit is contained in:
parent
869fc7ec30
commit
0505c52d3c
|
@ -0,0 +1,12 @@
|
|||
package sqlite
|
||||
|
||||
/*
|
||||
#cgo CFLAGS: -I.
|
||||
#cgo windows CFLAGS: -fno-stack-check -fno-stack-protector -mno-stack-arg-probe
|
||||
#cgo windows LDFLAGS: -lmingwex -lmingw32
|
||||
#cgo linux LDFLAGS: -ldl
|
||||
#cgo freebsd LDFLAGS: -ldl
|
||||
#cgo netbsd LDFLAGS: -ldl
|
||||
#cgo openbsd LDFLAGS: -ldl
|
||||
*/
|
||||
import "C"
|
|
@ -1,8 +0,0 @@
|
|||
// +build !windows
|
||||
|
||||
package sqlite
|
||||
|
||||
/*
|
||||
#cgo pkg-config: sqlite3
|
||||
*/
|
||||
import "C"
|
|
@ -1,7 +0,0 @@
|
|||
package sqlite
|
||||
|
||||
/*
|
||||
#cgo CFLAGS: -I. -fno-stack-check -fno-stack-protector -mno-stack-arg-probe
|
||||
#cgo LDFLAGS: -lmingwex -lmingw32
|
||||
*/
|
||||
import "C"
|
Loading…
Reference in New Issue