mirror of https://github.com/mattn/go-sqlite3.git
Use single file for cgo directives
This commit is contained in:
parent
7b2b45f066
commit
4892e42f7d
|
@ -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"
|
|
@ -1,6 +0,0 @@
|
|||
package sqlite
|
||||
|
||||
/*
|
||||
#cgo CFLAGS: -I.
|
||||
*/
|
||||
import "C"
|
|
@ -1,9 +0,0 @@
|
|||
// +build !windows, !darwin
|
||||
|
||||
package sqlite
|
||||
|
||||
/*
|
||||
#cgo CFLAGS: -I.
|
||||
#cgo LDFLAGS: -ldl
|
||||
*/
|
||||
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