Skip to content

Commit

Permalink
Always use static linking in build CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarber-akamai committed Dec 18, 2023
1 parent d713755 commit b8448bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/build
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ cd $(dirname $0)/..
mkdir -p bin
[ "$(uname)" != "Darwin" ] && LINKFLAGS="-linkmode external -extldflags -static -s"

CGO_ENABLED=0 go build -ldflags "-X main.VERSION=$VERSION $LINKFLAGS" -o bin/kontainer-engine-driver-lke
# Always use static linking
export CGO_ENABLED=0

go build -ldflags "-X main.VERSION=$VERSION $LINKFLAGS" -o bin/kontainer-engine-driver-lke
echo built default
for i in darwin linux
do
Expand Down

0 comments on commit b8448bc

Please sign in to comment.