Use single file for cgo directives

This commit is contained in:
Jesse van den Kieboom 2013-03-23 12:02:18 +01:00
parent 7b2b45f066
commit 4892e42f7d
4 changed files with 12 additions and 22 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: -dl
#cgo freebsd LDFLAGS: -dl
#cgo netbsd LDFLAGS: -dl
#cgo openbsd LDFLAGS: -dl
*/
import "C"

View File

@ -1,6 +0,0 @@
package sqlite
/*
#cgo CFLAGS: -I.
*/
import "C"

View File

@ -1,9 +0,0 @@
// +build !windows, !darwin
package sqlite
/*
#cgo CFLAGS: -I.
#cgo LDFLAGS: -ldl
*/
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"