File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -42,14 +42,14 @@ cross: $(BUILD_DIR) ## Cross-compile go binaries using CGO.
42
42
# - `-linkmode external -extldflags "-static-libgo"` allows dynamic linking.
43
43
echo "Building $(BIN_NAME)_$(GIT_TAG)_linux_arm64..."
44
44
CC=aarch64-linux-gnu-gcc CGO_ENABLED=1 GOOS=linux GOARCH=arm64 go build \
45
- -ldflags '$(VERSION_FLAGS) -s -w -linkmode external -extldflags "-static-libgo "' \
45
+ -ldflags '$(VERSION_FLAGS) -s -w -linkmode external -extldflags "-static"' \
46
46
-tags netgo \
47
47
-o $(BUILD_DIR)/$(BIN_NAME)_$(GIT_TAG)_linux_arm64 \
48
48
main.go
49
49
50
50
echo "Building $(BIN_NAME)_$(GIT_TAG)_linux_amd64..."
51
51
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build \
52
- -ldflags '$(VERSION_FLAGS) -s -w -linkmode external -extldflags "-static-libgo "' \
52
+ -ldflags '$(VERSION_FLAGS) -s -w -linkmode external -extldflags "-static"' \
53
53
-tags netgo \
54
54
-o $(BUILD_DIR)/$(BIN_NAME)_$(GIT_TAG)_linux_amd64 \
55
55
main.go
You can’t perform that action at this time.
0 commit comments