From 3bbbaa92b90bcea4fd9adc8e118f348b5f3b0f09 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 29 Oct 2024 12:03:37 -0300 Subject: Makefile: Prioritize local version when building and linking --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2a73dc2..0506c17 100644 --- a/Makefile +++ b/Makefile @@ -30,12 +30,12 @@ GOLDFLAGS = -L $(GOLIBDIR) $(CC) $(CFLAGS) -o $@ -c $< .go.a: - go tool compile $(GOCFLAGS) -I $(@D) -o $@ -p $(*F) \ + go tool compile -I $(@D) $(GOCFLAGS) -o $@ -p $(*F) \ `find $< $$(if [ $(*F) != main ]; then \ echo src/$(NAME).go src/version.go; fi) | uniq` .a.bin: - go tool link $(GOLDFLAGS) -L $(@D) -o $@ --extldflags '$(LDLIBS)' $< + go tool link -L $(@D) $(GOLDFLAGS) -o $@ --extldflags '$(LDLIBS)' $< -- cgit v1.2.3