aboutsummaryrefslogtreecommitdiff
path: root/src/make.bash
diff options
context:
space:
mode:
Diffstat (limited to 'src/make.bash')
-rwxr-xr-xsrc/make.bash9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/make.bash b/src/make.bash
index 3d1b0c87e7..4fb13f6275 100755
--- a/src/make.bash
+++ b/src/make.bash
@@ -132,10 +132,11 @@ fi
# Test which linker/loader our system is using
if type readelf >/dev/null 2>&1; then
- echo "int main() { return 0; }" | ${CC:-cc} -o ./test-musl-ldso -x c - || continue
- LDSO=$(readelf -l ./test-musl-ldso | grep 'interpreter:' | sed -e 's/^.*interpreter: \(.*\)[]]/\1/') >/dev/null 2>&1
- [ -z "$LDSO" ] || export GO_LDSO="$LDSO"
- rm -f ./test-musl-ldso
+ if echo "int main() { return 0; }" | ${CC:-cc} -o ./test-musl-ldso -x c - >/dev/null 2>&1; then
+ LDSO=$(readelf -l ./test-musl-ldso | grep 'interpreter:' | sed -e 's/^.*interpreter: \(.*\)[]]/\1/') >/dev/null 2>&1
+ [ -z "$LDSO" ] || export GO_LDSO="$LDSO"
+ rm -f ./test-musl-ldso
+ fi
fi
# Clean old generated file that will cause problems in the build.