otherwise breaks with spaces -- diff --git a/Makefile b/Makefile index 051fcbb..a604ac2 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ endif # EXTRA_LD_FLAGS are given by the caller, and are passed to the Go linker after # BUILTIN_LD_FLAGS are processed. By default the system LDFLAGS are passed. ifdef LDFLAGS -EXTRA_LD_FLAGS ?= -extldflags ${LDFLAGS} +EXTRA_LD_FLAGS ?= -extldflags '${LDFLAGS}' endif # LD_FLAGS is the union of the above two BUILTIN_LD_FLAGS and EXTRA_LD_FLAGS. LD_FLAGS = $(BUILTIN_LD_FLAGS) $(EXTRA_LD_FLAGS)