summaryrefslogtreecommitdiff
path: root/sofort/ccenv
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-06-10 20:40:58 +0000
committermidipix <writeonce@midipix.org>2021-06-10 20:41:37 +0000
commit3ee52645730fe43d54fde2a21bf289cae6a0aad4 (patch)
tree3d2d376e9e6e8c872b02c9db7b4b9c341d28fe00 /sofort/ccenv
parent5ac64da74900cb09067743e66253a8d6ec1c3874 (diff)
downloadbcparser-3ee52645730fe43d54fde2a21bf289cae6a0aad4.tar.bz2
bcparser-3ee52645730fe43d54fde2a21bf289cae6a0aad4.tar.xz
build system: ccenv_set_cc(): properly handle older slibtool versions.
Diffstat (limited to 'sofort/ccenv')
-rw-r--r--sofort/ccenv/ccenv.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sofort/ccenv/ccenv.sh b/sofort/ccenv/ccenv.sh
index a542823..a0f69f2 100644
--- a/sofort/ccenv/ccenv.sh
+++ b/sofort/ccenv/ccenv.sh
@@ -511,7 +511,7 @@ ccenv_set_cc()
$ccenv_dumpmachine_switch 2>&3)
elif command -v slibtool > /dev/null 2>&1; then
- ccenv=$(slibtool --dumpmachine 2>/dev/null)
+ ccenv=$(slibtool --dumpmachine 2>/dev/null || true)
fi
if [ -z "$ccenv_host" ]; then
@@ -546,7 +546,7 @@ ccenv_set_cc()
elif [ -z "$ccenv_host" ]; then
# no -dumpmachine support and no --host argument implies native build
if command -v slibtool > /dev/null 2>&1; then
- ccenv=$(slibtool --dumpmachine 2>/dev/null)
+ ccenv=$(slibtool --dumpmachine 2>/dev/null || true)
fi
if [ -z "$ccenv_host" ]; then