diff --git a/patches/015-fix-linkage.patch b/patches/015-fix-linkage.patch new file mode 100644 index 0000000000..639d10582d --- /dev/null +++ b/patches/015-fix-linkage.patch @@ -0,0 +1,25 @@ +From 8b36034dd8a69ffb7ec7e092b78171bd635ce345 Mon Sep 17 00:00:00 2001 +From: Simran Singh +Date: Fri, 17 May 2024 20:29:59 +0000 +Subject: [PATCH] fix linkage issue in RH builds + +--- + src/cmd/dist/build.go | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/cmd/dist/build.go b/src/cmd/dist/build.go +index 32e59b446a..598c9780cf 100644 +--- a/src/cmd/dist/build.go ++++ b/src/cmd/dist/build.go +@@ -1309,7 +1309,7 @@ func toolenv() []string { + // we disable cgo to get static binaries for cmd/go and cmd/pprof, + // so that they work on systems without the same dynamic libraries + // as the original build system. +- env = append(env, "CGO_ENABLED=0") ++ env = append(env, "") + } + if isRelease || os.Getenv("GO_BUILDER_NAME") != "" { + // Add -trimpath for reproducible builds of releases. +-- +2.39.3 +