We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 950de82 commit d9e3ae1Copy full SHA for d9e3ae1
Makefile
@@ -41,6 +41,7 @@ cross: $(BUILD_DIR) ## Cross-compile go binaries using CGO.
41
# - `-s -w` enables to strip debug and suppress warnings.
42
# - `-linkmode external -extldflags "-static-libgo"` allows dynamic linking.
43
echo "Building $(BIN_NAME)_$(GIT_TAG)_linux_arm64..."
44
+ export CC=arm-linux-gnueabi-gcc
45
CC=aarch64-linux-gnu-gcc CGO_ENABLED=1 GOOS=linux GOARCH=arm64 go build \
46
-ldflags '$(VERSION_FLAGS) -s -w -linkmode external -extldflags "-static-libgo"' \
47
-tags netgo \
0 commit comments