mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-16 09:26:58 +02:00
eclass/coreos-go.eclass: strip Go binaries by default
The size contains not only of the /usr partition but also the /boot partition require that we reduce the size of binaries as much as possible. Strip all Go binaries by default.
This commit is contained in:
parent
090680dc6d
commit
e73121db37
@ -56,7 +56,7 @@ go_build() {
|
||||
|
||||
${EGO} build -v \
|
||||
-p "$(makeopts_jobs)" \
|
||||
-ldflags "${GO_LDFLAGS} -extldflags '${LDFLAGS}'" \
|
||||
-ldflags "${GO_LDFLAGS} -s -w -extldflags '${LDFLAGS}'" \
|
||||
${COREOS_GO_MOD:+-mod "${COREOS_GO_MOD}"} \
|
||||
-o "${GOBIN}/${binary_name}" \
|
||||
"${package_name}"
|
||||
|
Loading…
Reference in New Issue
Block a user