diff --git a/build.sh b/build.sh index 221c0c6d..f122d973 100755 --- a/build.sh +++ b/build.sh @@ -42,7 +42,9 @@ if [ -n "$(${CC-cc} -v 2>&1 | grep "enable-default-pie")" ]; then LDFLAGS_NO_PIE="-no-pie" fi +set -x TARGET=$(LC_ALL=C ${CC-cc} -v 2>&1 | sed -n 's/^Target: //p' ) +set +x case ${TARGET} in *-linux*)