mirror of
https://github.com/chocolate-doom/chocpkg.git
synced 2025-02-22 11:41:50 +00:00
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:
parent
309f4e1592
commit
5663a8147b
1 changed files with 1 additions and 8 deletions
|
@ -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:-}"
|
||||
|
|
Loading…
Reference in a new issue