From 2cf093160be4b999c0808251364a52373a827962 Mon Sep 17 00:00:00 2001 From: Mikkel Krautz Date: Mon, 16 May 2011 22:23:05 +0200 Subject: [PATCH] Windows support for pkg/sqlite. --- pkg/sqlite/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/sqlite/Makefile b/pkg/sqlite/Makefile index f4f406a..6a290bf 100644 --- a/pkg/sqlite/Makefile +++ b/pkg/sqlite/Makefile @@ -8,7 +8,7 @@ TARG=sqlite CGOFILES=sqlite.go -ifneq ($(SQLITE),dll) +ifneq ($(GOOS),windows) CGO_OFILES=sqlite3.o endif @@ -17,6 +17,9 @@ CGO_LDFLAGS=-lpthread -ldl endif ifeq ($(GOOS),windows) +# requires a .dll and .def in c:\sqlite +# beware of version incompatibilities: +# build uses sqlite3.h header from this dir CGO_LDFLAGS=-Lc:/sqlite -lsqlite3 endif