Commit 0caf16b4 authored by Pierre's avatar Pierre

contrib: Define HAVE_MACOSX when distro=macosx*

(We don't want HAVE_MACOSX when building for iOS simulator.)
parent f39c7c22
......@@ -212,7 +212,6 @@ case $TARGET in
powerpc-apple-darwin9)
hint_distro macosx32
HAVE_DARWIN_32=1
add_enabled_makefile_cfg "HAVE_MACOSX"
CFLAGS_TUNING=" -arch ppc -mtune=G4"
EXTRA_LDFLAGS=" -arch ppc"
......@@ -223,7 +222,6 @@ case $TARGET in
i686-apple-darwin*)
hint_distro macosx32
HAVE_DARWIN_32=1
add_enabled_makefile_cfg "HAVE_MACOSX"
CFLAGS_TUNING=" -march=prescott -mtune=generic -arch i386 -m32"
EXTRA_LDFLAGS=" -arch i386"
......@@ -231,7 +229,6 @@ case $TARGET in
x86_64-apple-darwin*)
hint_distro macosx64
HAVE_DARWIN_64=1
add_enabled_makefile_cfg "HAVE_MACOSX"
CFLAGS_TUNING=" -march=core2 -mtune=core2 -m64 -arch x86_64"
EXTRA_LDFLAGS=" -arch x86_64"
......@@ -341,6 +338,7 @@ case "$DISTRO" in
add_makefile_cfg "SDK_TARGET = ${SDK_TARGET}"
add_makefile_cfg "ENVP = MACOSX_DEPLOYMENT_TARGET=${SDK_TARGET}"
add_makefile_cfg "MACOSX_SDK = /Developer/SDKs/MacOSX${SDK_TARGET}.sdk"
add_enabled_makefile_cfg "HAVE_MACOSX"
case $TARGET in
x86_64*|i686*) add_enabled_makefile_cfg "HAVE_MACOSX_ON_INTEL" ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment