aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.android
diff options
context:
space:
mode:
authorJeff Hamilton <jham@android.com>2010-05-27 11:41:41 -0500
committerJeff Hamilton <jham@android.com>2010-06-03 17:50:25 -0500
commitd0d9734ce225ca6421caf1decfc12dcc4cb2a58c (patch)
tree6dd65f6466f0e91b6ff5c8a21ade50aef72d5fcf /Makefile.android
parent34f2974ce7ec7c71beb47b5daf9089d5c8c40c79 (diff)
downloadexternal_qemu-d0d9734ce225ca6421caf1decfc12dcc4cb2a58c.zip
external_qemu-d0d9734ce225ca6421caf1decfc12dcc4cb2a58c.tar.gz
external_qemu-d0d9734ce225ca6421caf1decfc12dcc4cb2a58c.tar.bz2
Make the emulator build on Snow Leopard.
Force the minimum platform version to Leopard. Change-Id: Ibfff1ad611e1f262b81a324a16a3a28f80ae9a17
Diffstat (limited to 'Makefile.android')
-rw-r--r--Makefile.android29
1 files changed, 12 insertions, 17 deletions
diff --git a/Makefile.android b/Makefile.android
index 429632c..2e51d5f 100644
--- a/Makefile.android
+++ b/Makefile.android
@@ -64,26 +64,18 @@ ifeq ($(HOST_OS),darwin)
# When building on Leopard or above, we need to use the 10.4 SDK
# or the generated binary will not run on Tiger.
DARWIN_VERSION := $(strip $(shell sw_vers -productVersion))
- ifneq ($(filter 10.1 10.2 10.3 10.1.% 10.2.% 10.3.%,$(DARWIN_VERSION)),)
- $(error Building the Android emulator requires OS X 10.4 or above)
+ 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
- ifeq ($(filter 10.4 10.4.%,$(DARWIN_VERSION)),)
- # We are on Leopard or above
- TIGER_SDK := /Developer/SDKs/MacOSX10.4u.sdk
- ifeq ($(strip $(wildcard $(TIGER_SDK))),)
- $(info Please install the 10.4 SDK on this machine at $(TIGER_SDK))
+ ifeq ($(filter 10.5 10.5.%,$(DARWIN_VERSION)),)
+ # We are on Snow Leopard or above
+ 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 $(TIGER_SDK) -mmacosx-version-min=10.4 -DMACOSX_DEPLOYMENT_TARGET=10.4
- MY_LDLIBS += -isysroot $(TIGER_SDK) -Wl,-syslibroot,$(TIGER_SDK) -mmacosx-version-min=10.4
-
- # Beginning with Snow Leopard, the default compiler is GCC 4.2
- # which is incompatible with the 10.4 SDK, so we must
- # specify the use of GCC 4.0.
- ifeq ($(filter 10.5 10.5.%,$(DARWIN_VERSION)),)
- # We are on Snow Leopard or above
- MY_CC := gcc-4.0
- 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
endif
endif
@@ -154,6 +146,7 @@ include $(CLEAR_VARS)
LOCAL_NO_DEFAULT_COMPILER_FLAGS := true
LOCAL_CC := $(MY_CC)
+LOCAL_LDLIBS := $(MY_LDLIBS)
LOCAL_MODULE := emulator-hw
HW_CFLAGS := -I$(LOCAL_PATH)/hw
@@ -214,6 +207,7 @@ include $(CLEAR_VARS)
LOCAL_NO_DEFAULT_COMPILER_FLAGS := true
LOCAL_CC := $(MY_CC)
+LOCAL_LDLIBS := $(MY_LDLIBS)
LOCAL_MODULE := emulator-elff
LOCAL_CPP_EXTENSION := .cc
@@ -249,6 +243,7 @@ include $(CLEAR_VARS)
LOCAL_NO_DEFAULT_COMPILER_FLAGS := true
LOCAL_CC := $(MY_CC)
+LOCAL_LDLIBS := $(MY_LDLIBS)
LOCAL_MODULE := emulator-memcheck
MCHK_CFLAGS := -I$(LOCAL_PATH)/memcheck -I$(LOCAL_PATH)/elff