Skip to content
Myr

Quote LDFLAGS (#1995)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Make sure that `extldflags` is quoted so that LDFLAGS containing spaces won't break the build command. Close #1994

authored by Raffaele · committed by GitHub · parent 98ca4bd · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:Makefile+1 added-1 removed
4 unmodified lines
5ROOT_DIR := $(shell dirname $(MAKEFILE))6SOURCES := $(wildcard *.go src/*.go src/*/*.go) $(MAKEFILE)78REVISION := $(shell git log -n 1 --pretty=format:%h -- $(SOURCES))9BUILD_FLAGS := -a -ldflags "-X main.revision=$(REVISION) -w -extldflags=$(LDFLAGS)" -tags "$(TAGS)"9BUILD_FLAGS := -a -ldflags "-X main.revision=$(REVISION) -w '-extldflags=$(LDFLAGS)'" -tags "$(TAGS)"1011BINARY32 := fzf-$(GOOS)_38612BINARY64 := fzf-$(GOOS)_amd6413BINARYARM5 := fzf-$(GOOS)_arm5
123 unmodified lines