Skip to content

Commit

Permalink
Merge pull request #57 from thomasferrandiz/fix-cgo-enabled
Browse files Browse the repository at this point in the history
set CGO_ENABLED=1 when GOARCH=amd64
  • Loading branch information
thomasferrandiz authored Jan 4, 2024
2 parents 3716355 + f58497e commit a7e7c35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build_flannel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ STATIC_FLAGS='-extldflags "-static"'

GO_LDFLAGS="${STATIC_FLAGS} ${EXTRA_LDFLAGS}"

if [ -z "${CGO_ENABLED}" ]; then
CGO_ENABLED="${CGO_ENABLED}"
if [ ${GOARCH} == "amd64" ]; then
CGO_ENABLED="1"
else
CGO_ENABLED=0
fi
Expand Down

0 comments on commit a7e7c35

Please sign in to comment.