Commit 2a010263 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by rfjakob

build.bash: Escape LDFLAGS before passing them to 'go build'.

This ensures that ./build.bash still works when the LDFLAGS environment
variable contains multiple options, e.g., LDFLAGS="-lpthread -lm". The
correct way of passing multiple options is discussed here:

For some unknown reason, the method only works when -extldflags is the
last argument - is this a bug in Go?
parent 3cba378a
......@@ -84,7 +84,7 @@ GO_LDFLAGS="-X main.GitVersion=$GITVERSION -X main.GitVersionFuse=$GITVERSIONFUS
# If LDFLAGS is set, add it as "-extldflags".
if [[ -n ${LDFLAGS:-} ]] ; then
# Actual "go build" call
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment