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.
This commit is contained in:
parent
d1654def19
commit
90db2e54b0
1 changed files with 3 additions and 3 deletions
6
Makefile
6
Makefile
|
@ -17,9 +17,9 @@ GOSRC+=go.mod go.sum
|
||||||
|
|
||||||
aerc: $(GOSRC)
|
aerc: $(GOSRC)
|
||||||
go build $(GOFLAGS) \
|
go build $(GOFLAGS) \
|
||||||
-ldflags "-X main.Prefix=$(PREFIX)" \
|
-ldflags "-X main.Prefix=$(PREFIX) \
|
||||||
-ldflags "-X main.ShareDir=$(SHAREDIR)" \
|
-X main.ShareDir=$(SHAREDIR) \
|
||||||
-ldflags "-X main.Version=$(VERSION)" \
|
-X main.Version=$(VERSION)" \
|
||||||
-o $@
|
-o $@
|
||||||
|
|
||||||
aerc.conf: config/aerc.conf.in
|
aerc.conf: config/aerc.conf.in
|
||||||
|
|
Loading…
Reference in a new issue