summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-10-29 12:21:13 -0300
committerEuAndreh <eu@euandre.org>2024-10-29 12:21:13 -0300
commit4ba8c86ab66f32920ecc2dcf7c380956527214f5 (patch)
tree76ed435d8b8e70776c5a6501954f56e937d728a5
parentMakefile: Normalize .go.a: .SUFFIXES rule (diff)
downloadscrypt-4ba8c86ab66f32920ecc2dcf7c380956527214f5.tar.gz
scrypt-4ba8c86ab66f32920ecc2dcf7c380956527214f5.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 44e75c8..4c92c83 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)' $<