Skip to content

Commit

Permalink
静态编译
Browse files Browse the repository at this point in the history
  • Loading branch information
trheyi committed Feb 12, 2022
1 parent c676410 commit f22cb86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ artifacts: clean
# 制品
mkdir -p dist
CGO_ENABLED=1 CGO_LDFLAGS="-static" GOOS=linux GOARCH=amd64 go build -v -o dist/yao-${VERSION}-linux-amd64
CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ CGO_ENABLED=1 GOOS=linux GOARCH=arm64 go build -v -o dist/yao-${VERSION}-linux-arm64
CGO_ENABLED=1 CGO_LDFLAGS="-static" GOOS=linux GOARCH=arm64 CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ go build -v -o dist/yao-${VERSION}-linux-arm64

mkdir -p dist/release
mv dist/yao-*-* dist/release/
Expand Down

0 comments on commit f22cb86

Please sign in to comment.