forked from External/grumble
Add Windows support to pkg/sqlite Makefile.
This commit is contained in:
parent
7955e522db
commit
1365b6bbe3
1 changed files with 7 additions and 0 deletions
|
|
@ -7,10 +7,17 @@ include $(GOROOT)/src/Make.inc
|
||||||
TARG=sqlite
|
TARG=sqlite
|
||||||
|
|
||||||
CGOFILES=sqlite.go
|
CGOFILES=sqlite.go
|
||||||
|
|
||||||
|
ifneq ($(SQLITE),dll)
|
||||||
CGO_OFILES=sqlite3.o
|
CGO_OFILES=sqlite3.o
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(GOOS),linux)
|
ifeq ($(GOOS),linux)
|
||||||
CGO_LDFLAGS=-lpthread -ldl
|
CGO_LDFLAGS=-lpthread -ldl
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(GOOS),windows)
|
||||||
|
CGO_LDFLAGS=-Lc:/sqlite -lsqlite3
|
||||||
|
endif
|
||||||
|
|
||||||
include $(GOROOT)/src/Make.pkg
|
include $(GOROOT)/src/Make.pkg
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue