diff --git a/Software/Development/Language/Go/Basic/Go_交叉编译.md b/Software/Development/Language/Go/Basic/Go_交叉编译.md index fbc42eb..b417806 100644 --- a/Software/Development/Language/Go/Basic/Go_交叉编译.md +++ b/Software/Development/Language/Go/Basic/Go_交叉编译.md @@ -52,4 +52,6 @@ GOOS=linux GOARCH=arm GOARM=7 go build ```bash # Build for arm CGO_ENABLED=1 GOOS=linux GOARCH=arm CC=arm-linux-gnueabi-gcc go build +# Build and Stripped +GOOS=linux GOARCH=arm go build -ldflags "-s" ```