diff options
author | EuAndreh <eu@euandre.org> | 2024-10-29 12:03:37 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-10-29 12:03:37 -0300 |
commit | 3bbbaa92b90bcea4fd9adc8e118f348b5f3b0f09 (patch) | |
tree | b86302005306b368105593dd62adcc2bef9f49d9 | |
parent | tests/golite.go: Replace `":memory:"` with `InMemory` constant (diff) | |
download | golite-3bbbaa92b90bcea4fd9adc8e118f348b5f3b0f09.tar.gz golite-3bbbaa92b90bcea4fd9adc8e118f348b5f3b0f09.tar.xz |
Makefile: Prioritize local version when building and linking
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)' $< |