diff --git a/Makefile b/Makefile index 38849921854..8181e7bc0d1 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ LDFLAGS_STATIC := -extldflags -static ifneq (,$(filter $(GOARCH),arm64 amd64)) ifeq (,$(findstring -race,$(EXTRA_FLAGS))) GO_BUILDMODE_STATIC := -buildmode=pie - LDFLAGS_STATIC := -linkmode external -extldflags --static-pie + LDFLAGS_STATIC := -linkmode external -extldflags -static-pie endif endif # Enable static PIE binaries on supported platforms.