Skip to content

Commit

Permalink
patch fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Adub17030MS authored Oct 22, 2024
1 parent a99cc5f commit a382dcb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions SPECS/containerized-data-importer/allow-static-build.patch
Original file line number Diff line number Diff line change
@@ -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)"
Expand Down

0 comments on commit a382dcb

Please sign in to comment.