diff options
author | Raffaele <1770381+rafspiny@users.noreply.github.com> | 2020-04-21 03:07:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-21 10:07:39 +0900 |
commit | 08c2bcb952a0abbead263dcb0026eab58e736e1d (patch) | |
tree | e615a96d0b6d72fad8a1ccac43a1da8e30523ecc /Makefile | |
parent | 98ca4bdededdf04fce1d5490d3287c9b75f24847 (diff) |
Quote LDFLAGS (#1995)
Make sure that `extldflags` is quoted so that LDFLAGS containing spaces won't break the build command.
Close #1994
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6,7 +6,7 @@ ROOT_DIR := $(shell dirname $(MAKEFILE)) SOURCES := $(wildcard *.go src/*.go src/*/*.go) $(MAKEFILE) REVISION := $(shell git log -n 1 --pretty=format:%h -- $(SOURCES)) -BUILD_FLAGS := -a -ldflags "-X main.revision=$(REVISION) -w -extldflags=$(LDFLAGS)" -tags "$(TAGS)" +BUILD_FLAGS := -a -ldflags "-X main.revision=$(REVISION) -w '-extldflags=$(LDFLAGS)'" -tags "$(TAGS)" BINARY32 := fzf-$(GOOS)_386 BINARY64 := fzf-$(GOOS)_amd64 |