When building for 10.4 or 10.5, force 32-bit x86 on x86 and 32-bit PPC

on PPC.

svn path=/trunk/; revision=51921
This commit is contained in:
Guy Harris 2013-09-10 10:24:00 +00:00
parent 8bde188792
commit 2891a58aa8
1 changed files with 12 additions and 3 deletions

View File

@ -434,9 +434,18 @@ then
# functions not to work with 64-bit userland
# code, so capturing won't work.
#
CFLAGS="-arch i386 $CFLAGS"
CXXFLAGS="-arch i386 $CXXFLAGS"
LDFLAGS="-arch i386 $LDFLAGS"
case $host_cpu in
i*86 | x86_64)
CFLAGS="-arch i386 $CFLAGS"
CXXFLAGS="-arch i386 $CXXFLAGS"
LDFLAGS="-arch i386 $LDFLAGS"
;;
powerpc*)
CFLAGS="-arch ppc $CFLAGS"
CXXFLAGS="-arch ppc $CXXFLAGS"
LDFLAGS="-arch ppc $LDFLAGS"
;;
esac
;;
esac
else