diff options
author | EuAndreh <eu@euandre.org> | 2024-10-29 12:09:01 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-10-29 12:09:01 -0300 |
commit | 8f19cb1e3f80485f5b492c7f31c8f320750983af (patch) | |
tree | f16f2605b3cc33950192dffdab49889c349cc1f1 | |
parent | Makefile: Adapt to latest golang skeleton (diff) | |
download | binder-8f19cb1e3f80485f5b492c7f31c8f320750983af.tar.gz binder-8f19cb1e3f80485f5b492c7f31c8f320750983af.tar.xz |
Makefile: Prioritize local version when building and linking
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -27,12 +27,12 @@ GOLDFLAGS = -L $(GOLIBDIR) .SUFFIXES: .go .a .bin .bin-check .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)' $< |