Skip to content

Commit d1547fa

Browse files
committed
remove escape string in .cross build rule as well
1 parent 440ba17 commit d1547fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ cross: $(foreach platform, $(SUPPORTED_PLATFORMS), $(BUILD_DIR)/$(PROJECT)-$(pla
9696
$(BUILD_DIR)/$(PROJECT)-%: $(EMBEDDED_FILES_CHECK) $(GO_FILES) $(BUILD_DIR)
9797
$(eval os = $(firstword $(subst -, ,$*)))
9898
$(eval arch = $(lastword $(subst -, ,$(subst .exe,,$*))))
99-
$(eval ldflags = $(GO_LDFLAGS) $(patsubst %,-extldflags \"%\",$(LDFLAGS_$(os))))
99+
$(eval ldflags = $(GO_LDFLAGS) $(patsubst %,-extldflags "%",$(LDFLAGS_$(os))))
100100
$(eval tags = $(GO_BUILD_TAGS) $(GO_BUILD_TAGS_$(os)) $(GO_BUILD_TAGS_$(os)_$(arch)))
101-
GOOS=$(os) GOARCH=$(arch) CGO_ENABLED=1 go build -mod="vendor" -tags "$(tags)" -ldflags "$(ldflags)" -o $@ ./cmd/skaffold
101+
GOOS=$(os) GOARCH=$(arch) CGO_ENABLED=1 go build -mod="vendor" -tags "$(tags)" -ldflags '$(ldflags)' -o $@ ./cmd/skaffold
102102
(cd `dirname $@`; shasum -a 256 `basename $@`) | tee $@.sha256
103103
file $@ || true
104104

0 commit comments

Comments
 (0)