diff options
-rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -17,7 +17,7 @@ MANDIR = $(SHAREDIR)/man EXEC = ./ ## Where to store the installation. Empty by default. DESTDIR = -LDLIBS = +LDLIBS = -lsqlite3 @@ -95,10 +95,10 @@ tests/libbuild.a: tests/libbuild.go src/$(NAME).a go tool compile $(GOCFLAGS) -o $@ -p main -I src $*.go tests/main.bin: tests/main.a - go tool link $(GOLDFLAGS) -o $@ -L $(@D) --extldflags '-lsqlite3' $*.a + go tool link $(GOLDFLAGS) -o $@ -L $(@D) --extldflags '$(LDLIBS)' $*.a tests/libbuild.bin: tests/libbuild.a - go tool link $(GOLDFLAGS) -o $@ -L src --extldflags '-lsqlite3' $*.a + go tool link $(GOLDFLAGS) -o $@ -L src --extldflags '$(LDLIBS)' $*.a |