1
0
mirror of https://github.com/rancher/os.git synced 2025-09-13 21:51:33 +00:00

Use the correct strip binary.

Fixes native builds on ARM
This commit is contained in:
Ivan Mikushin
2016-03-15 15:58:03 -07:00
parent 60e0ed9be4
commit 3b6d47be32
2 changed files with 8 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ strip_bin=$(which strip)
if [ "${TOOLCHAIN}" != "" ]; then
export CC=/usr/bin/${TOOLCHAIN}-gcc
export CGO_ENABLED=1
strip_bin=/usr/${TOOLCHAIN}/bin/strip
strip_bin=/usr/bin/${TOOLCHAIN}-strip
fi
GOARCH=${ARCH} go build -tags netgo -installsuffix netgo -ldflags "-X github.com/rancher/os/config.VERSION=${VERSION} -linkmode external -extldflags -static" -o ${ros}
${strip_bin} --strip-all ${ros}

7
scripts/shell.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
set -e
cd $(dirname $0)/..
. ./scripts/dapper-common
exec dapper -s