aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2019-06-19 21:46:58 +0200
committerDrew DeVault <sir@cmpwn.com>2019-06-19 15:48:13 -0400
commit90db2e54b0150d92e29b939d3cc89ff9c5dd39d4 (patch)
tree75ee4fa715bf35625e1c5cf49cdd66c412b537f5
parentd1654def192459f829496791406483a1286805e7 (diff)
downloadaerc-90db2e54b0150d92e29b939d3cc89ff9c5dd39d4.tar.gz
Makefile: fix -ldflags -X invocation
Aerc uses the go linker to add some variables like main.Prefix / main.ShareDir etc. however the go linker only considers the last -ldflags invocation it seems. This commit fixes the makefile to use only a single -ldflags invocation, which again sets the vars as expected.
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index b4f105a0..4617118e 100644
--- a/Makefile
+++ b/Makefile
@@ -17,9 +17,9 @@ GOSRC+=go.mod go.sum
aerc: $(GOSRC)
go build $(GOFLAGS) \
- -ldflags "-X main.Prefix=$(PREFIX)" \
- -ldflags "-X main.ShareDir=$(SHAREDIR)" \
- -ldflags "-X main.Version=$(VERSION)" \
+ -ldflags "-X main.Prefix=$(PREFIX) \
+ -X main.ShareDir=$(SHAREDIR) \
+ -X main.Version=$(VERSION)" \
-o $@
aerc.conf: config/aerc.conf.in