summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-10-29 12:05:49 -0300
committerEuAndreh <eu@euandre.org>2024-10-29 12:05:49 -0300
commite77822534fe4a595ae6e8f319f320c7d9227efb5 (patch)
tree2aa6087ba5f21be41da57eb8760842297842a3d1
parentsrc/q.go: New() - manage *sql.DB handle internally (diff)
downloadfiinha-e77822534fe4a595ae6e8f319f320c7d9227efb5.tar.gz
fiinha-e77822534fe4a595ae6e8f319f320c7d9227efb5.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 86ef227..69125ad 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)' $<