build/macosx/mozconfig.leopard
author Ryan VanderMeulen <ryanvm@gmail.com>
Sat, 11 Feb 2012 03:34:00 -0500
changeset 86670 2acd68334b0b9234a76a61ab61d7c595623ba2af
parent 84804 429503206f26a72effc1cb8240ad62cafd13dfca
child 104226 81bbb0b8aff26fa8ff5811eab3c721ae06331416
permissions -rw-r--r--
Bug 698519 - Update libjpeg-turbo to version 1.2.0. r=jlebar

. $topsrcdir/build/macosx/common

# 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"

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