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:
Jesse van den Kieboom 2013-03-23 11:30:43 +01:00
parent 869fc7ec30
commit 0505c52d3c
4 changed files with 12 additions and 15 deletions

12
sqlite3_c.go Normal file
View File

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

View File

@ -1,8 +0,0 @@
// +build !windows
package sqlite
/*
#cgo pkg-config: sqlite3
*/
import "C"

View File

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