From 1365b6bbe3069b18033e301de6955afc8cf68af6 Mon Sep 17 00:00:00 2001 From: Mikkel Krautz Date: Mon, 16 May 2011 22:13:19 +0200 Subject: [PATCH] Add Windows support to pkg/sqlite Makefile. --- pkg/sqlite/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/sqlite/Makefile b/pkg/sqlite/Makefile index b98ff24..f4f406a 100644 --- a/pkg/sqlite/Makefile +++ b/pkg/sqlite/Makefile @@ -7,10 +7,17 @@ include $(GOROOT)/src/Make.inc TARG=sqlite CGOFILES=sqlite.go + +ifneq ($(SQLITE),dll) CGO_OFILES=sqlite3.o +endif ifeq ($(GOOS),linux) CGO_LDFLAGS=-lpthread -ldl endif +ifeq ($(GOOS),windows) +CGO_LDFLAGS=-Lc:/sqlite -lsqlite3 +endif + include $(GOROOT)/src/Make.pkg