2011-12-08 21:32:18 +04:00
|
|
|
. $topsrcdir/build/macosx/common
|
2011-07-28 01:32:00 +04:00
|
|
|
|
2011-08-24 21:42:20 +04:00
|
|
|
# Mac builds don't nomally have to be handled as cross
|
|
|
|
# compilation, but some of the libraries on the bots
|
|
|
|
# (IDL for example) are built only for one arch.
|
|
|
|
|
|
|
|
HOST_CC=$CC
|
|
|
|
HOST_CXX=$CXX
|
|
|
|
|
|
|
|
# These must be set for cross builds, and don't hurt straight builds.
|
|
|
|
RANLIB=ranlib
|
|
|
|
AR=ar
|
|
|
|
AS=$CC
|
|
|
|
LD=ld
|
|
|
|
STRIP="strip -x -S"
|
|
|
|
|
2011-09-18 22:43:31 +04:00
|
|
|
MOZ_CAN_RUN_PROGRAMS=1
|
|
|
|
|
2011-07-28 01:32:00 +04:00
|
|
|
# We do 32 bit builds for leopard
|
2011-08-24 21:42:20 +04:00
|
|
|
TARGET_CPU=i386
|
|
|
|
CC="$CC -arch $TARGET_CPU"
|
|
|
|
CXX="$CXX -arch $TARGET_CPU"
|
|
|
|
|
|
|
|
NATIVE_CPU=`$topsrcdir/build/autoconf/config.guess | cut -f1 -d-`
|
|
|
|
|
|
|
|
if test "$NATIVE_CPU" != "$TARGET_CPU" ; then
|
|
|
|
CROSS_COMPILE=1
|
|
|
|
fi
|
2011-07-28 01:32:00 +04:00
|
|
|
|
2011-08-24 00:06:17 +04:00
|
|
|
# Note, the version (10) is used by libffi's configure.
|
|
|
|
ac_add_options --target=i386-apple-darwin10
|
2012-01-19 00:35:28 +04:00
|
|
|
ac_add_options --with-macos-sdk=/Developer/SDKs/MacOSX10.6.sdk
|