forked from External/grumble
Windows support for pkg/sqlite.
This commit is contained in:
parent
1365b6bbe3
commit
2cf093160b
1 changed files with 4 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ TARG=sqlite
|
||||||
|
|
||||||
CGOFILES=sqlite.go
|
CGOFILES=sqlite.go
|
||||||
|
|
||||||
ifneq ($(SQLITE),dll)
|
ifneq ($(GOOS),windows)
|
||||||
CGO_OFILES=sqlite3.o
|
CGO_OFILES=sqlite3.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
@ -17,6 +17,9 @@ CGO_LDFLAGS=-lpthread -ldl
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(GOOS),windows)
|
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
|
CGO_LDFLAGS=-Lc:/sqlite -lsqlite3
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue