From a382dcb744147e8d0fddff4d14047cf5a0cab279 Mon Sep 17 00:00:00 2001 From: Aditya Dubey <110563293+Adub17030MS@users.noreply.github.com> Date: Tue, 22 Oct 2024 11:42:02 -0700 Subject: [PATCH] patch fix --- .../allow-static-build.patch | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/SPECS/containerized-data-importer/allow-static-build.patch b/SPECS/containerized-data-importer/allow-static-build.patch index 44661a975b2..dad21a97419 100644 --- a/SPECS/containerized-data-importer/allow-static-build.patch +++ b/SPECS/containerized-data-importer/allow-static-build.patch @@ -1,12 +1,16 @@ diff --git a/hack/build/build-go.sh b/hack/build/build-go.sh -index 9ab28a434..d03e23ebe 100755 +index 9ab28a434..b8ab48d48 100755 --- a/hack/build/build-go.sh +++ b/hack/build/build-go.sh -@@ -61,6 +61,9 @@ elif [ "${go_opt}" == "build" ]; then +@@ -57,10 +57,13 @@ elif [ "${go_opt}" == "build" ]; then + static_flag="" + if [ "$tgt" == "tools/cdi-containerimage-server" ]; then + static_flag="static" ++ echo $CGO_ENABLED + fi ( cd $tgt # Only build executables for linux -+ echo $CGO_ENABLED + echo $(cdi::version::ldflags) + echo $static_flag GOOS=linux go build -o ${outFile} -tags strictfipsruntime -ldflags '-extldflags $static_flag' -ldflags "$(cdi::version::ldflags)"