mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
10a0ab1897
--HG-- rename : build/macosx/common => build/macosx/mozconfig.common extra : rebase_source : fd63c04c9624177a75220a5a49f03fd0e8539e26
33 lines
783 B
Plaintext
33 lines
783 B
Plaintext
. $topsrcdir/build/macosx/mozconfig.common
|
|
|
|
# Mac builds don't normally 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"
|
|
|
|
MOZ_CAN_RUN_PROGRAMS=1
|
|
|
|
# We do 32 bit builds for leopard
|
|
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
|
|
|
|
# Note, the version (10) is used by libffi's configure.
|
|
ac_add_options --target=i386-apple-darwin10
|
|
ac_add_options --with-macos-sdk=/Developer/SDKs/MacOSX10.6.sdk
|