aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-08-14 17:09:40 -0300
committerEuAndreh <eu@euandre.org>2024-08-14 17:09:40 -0300
commit4509b2480c7e50136715e4a7a8a1dca809ea2906 (patch)
treed7540d958ca1ba5e8ede440c8d9dfd881036059d /Makefile
parenttests/golite.go: Run tests (diff)
downloadgolite-4509b2480c7e50136715e4a7a8a1dca809ea2906.tar.gz
golite-4509b2480c7e50136715e4a7a8a1dca809ea2906.tar.xz
Makefile: move "-lsqlite3" to $(LDLIBS)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index ebddf60..44b06f6 100644
--- a/Makefile
+++ b/Makefile
@@ -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