summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-10-29 17:15:30 -0300
committerEuAndreh <eu@euandre.org>2024-10-29 17:15:30 -0300
commit5c70bcd5576a675d7835fac26494f5bc1e7cda03 (patch)
tree499852a19d2d7f2ae37631b84ea2f450ec12937d
parentmkdeps.sh: Fix typo on varlist name (diff)
downloadpapod-5c70bcd5576a675d7835fac26494f5bc1e7cda03.tar.gz
papod-5c70bcd5576a675d7835fac26494f5bc1e7cda03.tar.xz
Makefile: Prioritize local version when building and linking
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 66066d2..8eed63d 100644
--- a/Makefile
+++ b/Makefile
@@ -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)' $<