From 7b2b45f066357aa07b82d183b3ec16faf68e520b Mon Sep 17 00:00:00 2001 From: Jesse van den Kieboom Date: Sat, 23 Mar 2013 11:46:06 +0100 Subject: [PATCH] Added link flags for dl --- sqlite3_darwin.go | 6 ++++++ sqlite3_other.go | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 sqlite3_darwin.go diff --git a/sqlite3_darwin.go b/sqlite3_darwin.go new file mode 100644 index 0000000..b87c1a1 --- /dev/null +++ b/sqlite3_darwin.go @@ -0,0 +1,6 @@ +package sqlite + +/* +#cgo CFLAGS: -I. +*/ +import "C" diff --git a/sqlite3_other.go b/sqlite3_other.go index 7e428cc..b97dae4 100644 --- a/sqlite3_other.go +++ b/sqlite3_other.go @@ -1,8 +1,9 @@ -// +build !windows +// +build !windows, !darwin package sqlite /* #cgo CFLAGS: -I. +#cgo LDFLAGS: -ldl */ import "C"