Skip to content

Commit

Permalink
Enabled CGO also for arm64 build
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Bonafiglia <[email protected]>
  • Loading branch information
rbrtbnfgl committed Apr 23, 2024
1 parent 9060d82 commit 85abf24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ RUN if [ "${ARCH}" = "amd64" ]; then \
-gcflags=-trimpath=${GOPATH}/src -o bin/calico-node ./cmd/calico-node; \
fi
RUN if [ "${ARCH}" != "amd64" ]; then \
CGO_ENABLED=0 && CGO_LDFLAGS="" && go build -ldflags "-linkmode=external \
CGO_LDFLAGS="-lelf -lz -lzstd" && CGO_CFLAGS="" && go build -ldflags "-linkmode=external \
-X github.com/projectcalico/calico/node/pkg/lifecycle/startup.VERSION=${TAG} \
-X github.com/projectcalico/calico/node/buildinfo.GitRevision=$(git rev-parse HEAD) \
-X github.com/projectcalico/calico/node/buildinfo.GitVersion=$(git describe --tags --always) \
Expand Down

0 comments on commit 85abf24

Please sign in to comment.