Patch by Matt Madia: Added automatic detection of 32 or 64 bit mode.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29314 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -238,6 +238,7 @@ cd "$currentDir"
|
|||||||
# default parameter values
|
# default parameter values
|
||||||
#
|
#
|
||||||
platform=`uname`
|
platform=`uname`
|
||||||
|
platform_machine=`uname -m`
|
||||||
haikuGCCVersion=
|
haikuGCCVersion=
|
||||||
haikuGCCMachine=i586-pc-haiku
|
haikuGCCMachine=i586-pc-haiku
|
||||||
haikuStaticLibStdCxx=
|
haikuStaticLibStdCxx=
|
||||||
@@ -335,6 +336,13 @@ while [ $# -gt 0 ] ; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# check for a 64bit platform
|
||||||
|
case "${platform_machine}" in
|
||||||
|
x86_64) use_32bit=1 ;;
|
||||||
|
*) echo Assuming 32-bit machine: "$platform_machine"
|
||||||
|
use_32bit=0 ;;
|
||||||
|
esac
|
||||||
|
|
||||||
# detect the build platform
|
# detect the build platform
|
||||||
case "${platform}" in
|
case "${platform}" in
|
||||||
BeOS) revision=`uname -r`
|
BeOS) revision=`uname -r`
|
||||||
@@ -348,7 +356,11 @@ case "${platform}" in
|
|||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
Darwin) buildPlatform=darwin ;;
|
Darwin) buildPlatform=darwin ;;
|
||||||
FreeBSD) buildPlatform=freebsd ;;
|
FreeBSD) buildPlatform=freebsd
|
||||||
|
if [ "$use_32bit" = 1 ] ; then
|
||||||
|
echo Unsupported platform: FreeBSD ${platform_machine}
|
||||||
|
exit 1
|
||||||
|
fi ;;
|
||||||
Haiku) buildPlatform=haiku_host ;;
|
Haiku) buildPlatform=haiku_host ;;
|
||||||
Linux) buildPlatform=linux ;;
|
Linux) buildPlatform=linux ;;
|
||||||
OpenBSD) buildPlatform=openbsd ;;
|
OpenBSD) buildPlatform=openbsd ;;
|
||||||
|
|||||||
Reference in New Issue
Block a user