From 72f756b79c4f923e8cdc8f9828fe443a91498574 Mon Sep 17 00:00:00 2001 From: Mykhailo Bobrovskyi Date: Tue, 22 Oct 2024 10:37:07 +0300 Subject: [PATCH] Use -ldflags=-linkmode=internal to fix malformed LC_DYSYMTAB issue. --- cmd/experimental/kjobctl/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/experimental/kjobctl/Makefile b/cmd/experimental/kjobctl/Makefile index af65c37e63..2da2f7bb4e 100644 --- a/cmd/experimental/kjobctl/Makefile +++ b/cmd/experimental/kjobctl/Makefile @@ -2,7 +2,7 @@ ENVTEST_K8S_VERSION = 1.31.0 ifeq ($(shell uname),Darwin) - GOFLAGS ?= -ldflags=-extldflags=-Wl,-ld_classic + GOFLAGS ?= -ldflags=-linkmode=internal endif # Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)