diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2012-07-24 13:08:50 -0700 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2012-07-24 13:08:50 -0700 |
commit | ddcd0227c34b3ab15c8feeabff1a00329e156a58 (patch) | |
tree | e7445ea7fb6f695673e83ddb9639caa28429cbf9 | |
parent | e4f78166b531cad2bb474bae8031b66024c7df4b (diff) | |
download | external_qemu-ddcd0227c34b3ab15c8feeabff1a00329e156a58.zip external_qemu-ddcd0227c34b3ab15c8feeabff1a00329e156a58.tar.gz external_qemu-ddcd0227c34b3ab15c8feeabff1a00329e156a58.tar.bz2 |
Fix MacOSX 10.7 build
MacOSX 10.7 fails to build external/qemu because SDK path isn't set.
Set SDK path to 10.6 (the minimal SDK comes with Xcode 4.x, PS*1) for
10.7.
PS*1: Note that Xcode 3.x can't be installed on 10.7 w/o hack.
Change-Id: Ie2db76a91bf3edac6a8670ce7d695060a2bd6473
-rw-r--r-- | Makefile.android | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/Makefile.android b/Makefile.android index 195c061..0441652 100644 --- a/Makefile.android +++ b/Makefile.android @@ -82,16 +82,20 @@ ifeq ($(HOST_OS),darwin) ifneq ($(filter 10.1 10.2 10.3 10.1.% 10.2.% 10.3.% 10.4 10.4.%,$(DARWIN_VERSION)),) $(error Building the Android emulator requires OS X 10.5 or above) endif - ifneq ($(filter 10.6 10.6.%,$(DARWIN_VERSION)),) - # We are on Snow Leopard - LEOPARD_SDK := /Developer/SDKs/MacOSX10.5.sdk - ifeq ($(strip $(wildcard $(LEOPARD_SDK))),) - $(info Please install the 10.5 SDK on this machine at $(LEOPARD_SDK)) - $(error Aborting the build.) - endif - MY_CFLAGS += -isysroot $(LEOPARD_SDK) -mmacosx-version-min=10.5 -DMACOSX_DEPLOYMENT_TARGET=10.5 - MY_LDLIBS += -isysroot $(LEOPARD_SDK) -Wl,-syslibroot,$(LEOPARD_SDK) -mmacosx-version-min=10.5 + ifneq ($(filter 10.5 10.5.% 10.6 10.6.%,$(DARWIN_VERSION)),) + # We are on Leopard or Snow Leopard + MSDK=10.5 + else + # We are on Lion or beyond, and 10.6 SDK is the minimum in Xcode 4.x + MSDK=10.6 endif + MACOSX_SDK := /Developer/SDKs/MacOSX$(MSDK).sdk + ifeq ($(strip $(wildcard $(MACOSX_SDK))),) + $(info Please install the $(MSDK) SDK on this machine at $(MACOSX_SDK)) + $(error Aborting the build.) + endif + MY_CFLAGS += -isysroot $(MACOSX_SDK) -mmacosx-version-min=$(MSDK) -DMACOSX_DEPLOYMENT_TARGET=$(MSDK) + MY_LDLIBS += -isysroot $(MACOSX_SDK) -Wl,-syslibroot,$(MACOSX_SDK) -mmacosx-version-min=$(MSDK) endif # BUILD_STANDALONE_EMULATOR is only defined when building with |