Switch Mac builds to 64-bit binaries.

We already target the OS X 10.7 API, and 10.7 won't run on machines
that don't have a 64-bit-capable processor. So there's no reason not
to do this now.
This commit is contained in:
Simon Howard 2017-01-07 21:13:50 +01:00
parent 309f4e1592
commit 5663a8147b

View file

@ -26,17 +26,10 @@ MAKE_OPTS=
LATEST_PACKAGES=(chocolate-doom)
#LATEST_PACKAGES+=(SDL2 SDL2_image SDL2_mixer SDL2_net)
# On OS X, we must set additional options: build 32-bit binaries, and the
# target API version.
if [ $(uname) = "Darwin" ]; then
CC="gcc -m32"
CXX="g++ -m32"
LDFLAGS="-lobjc ${LDFLAGS:-}"
MACOSX_DEPLOYMENT_TARGET=10.7
export CC CXX LDFLAGS MACOSX_DEPLOYMENT_TARGET
# Treat this like a cross-compile, since we're building 32-bit:
IS_CROSS_COMPILE=true
export LDFLAGS MACOSX_DEPLOYMENT_TARGET
else
# TODO: explain what this does
LDFLAGS="-Wl,-rpath -Wl,$INSTALL_DIR/lib ${LDFLAGS:-}"