From 4509b2480c7e50136715e4a7a8a1dca809ea2906 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 14 Aug 2024 17:09:40 -0300 Subject: Makefile: move "-lsqlite3" to $(LDLIBS) --- Makefile | 6 +++--- 1 file 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 -- cgit v1.2.3