summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-10-29 12:22:09 -0300
committerEuAndreh <eu@euandre.org>2024-10-29 12:22:09 -0300
commit48275eb42f2dab28271ef1168e2766c2e8ffff05 (patch)
tree397024ff8dbf85474739780f0e8c70a196e5f8c5 /Makefile
parentAdapt to latest golang Makefile skeleton (diff)
downloaduntls-48275eb42f2dab28271ef1168e2766c2e8ffff05.tar.gz
untls-48275eb42f2dab28271ef1168e2766c2e8ffff05.tar.xz
Makefile: Prioritize local version when building and linking
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 15c9795..146709f 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)' $<