From 64fbc46223894957fd61dc2a1c093f5398e8dc3f Mon Sep 17 00:00:00 2001 From: "chen.yang" Date: Fri, 12 Nov 2021 19:56:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20Stripped=20build.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chen.yang --- Software/Development/Language/Go/Basic/Go_交叉编译.md | 2 ++ 1 file changed, 2 insertions(+) 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" ```