mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-28 06:52:35 +00:00
fallback to 32bit binaries on 64bit biarchs if available
This commit is contained in:
parent
f3bcf07ecf
commit
6fd0d60628
1 changed files with 10 additions and 4 deletions
|
@ -36,9 +36,15 @@ else
|
||||||
fi
|
fi
|
||||||
export LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH
|
||||||
|
|
||||||
arch=`uname -m`
|
archs=`uname -m`
|
||||||
case "$arch" in
|
case "$archs" in
|
||||||
i?86) arch=i386 ;;
|
i?86) archs=i386 ;;
|
||||||
|
x86_64) archs="x86_64 i386" ;;
|
||||||
|
ppc64) archs="ppc64 ppc" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
exec ./ioquake3.$arch "$@"
|
for arch in $archs; do
|
||||||
|
test -x ./ioquake3.$arch || continue
|
||||||
|
exec ./ioquake3.$arch "$@"
|
||||||
|
done
|
||||||
|
echo "could not execute ioquake3" >&2
|
||||||
|
|
Loading…
Reference in a new issue