diff options
author | midipix <writeonce@midipix.org> | 2021-06-10 20:40:58 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-06-10 20:41:40 +0000 |
commit | 037e4c862538dd472180d47672550e81b1816470 (patch) | |
tree | 63ff9632d5f7628e00527c5bf7e77420bef2d47f | |
parent | bfe402e9517d34b433a528c8ed61bfba9953bee2 (diff) | |
download | w32lib-037e4c862538dd472180d47672550e81b1816470.tar.bz2 w32lib-037e4c862538dd472180d47672550e81b1816470.tar.xz |
build system: ccenv_set_cc(): properly handle older slibtool versions.
-rw-r--r-- | sofort/ccenv/ccenv.sh | 4 |
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 |