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:
Kai Lueke 2022-03-23 13:11:15 +01:00
parent 090680dc6d
commit e73121db37

View File

@ -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}"