Use Mac OS X SDK 10.6.
Change-Id: I8ca16db2fb93d350829e14f4339e7ece75a2fb54
This commit is contained in:
parent
979bf12816
commit
abf72cf3f4
2 changed files with 9 additions and 10 deletions
|
@ -127,6 +127,9 @@ $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/app/*)
|
|||
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/data/app/*)
|
||||
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/build.prop)
|
||||
|
||||
# Now we switched to build against Mac OS X SDK 10.6
|
||||
$(call add-clean-step, rm -rf $(OUT_DIR)/host/linux-x86/obj)
|
||||
|
||||
# ************************************************
|
||||
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
|
||||
# ************************************************
|
||||
|
|
|
@ -34,21 +34,17 @@ ifneq ($(strip $(BUILD_HOST_static)),)
|
|||
HOST_GLOBAL_LDFLAGS += -static
|
||||
endif # BUILD_HOST_static
|
||||
|
||||
# Use the Mac OSX SDK 10.5 if the build host is 10.6
|
||||
build_mac_version := $(shell sw_vers -productVersion)
|
||||
ifneq ($(filter 10.6.%, $(build_mac_version)),)
|
||||
sdk_105_root := /Developer/SDKs/MacOSX10.5.sdk
|
||||
ifeq ($(wildcard $(sdk_105_root)),)
|
||||
mac_sdk_version := 10.6
|
||||
mac_sdk_root := /Developer/SDKs/MacOSX$(mac_sdk_version).sdk
|
||||
ifeq ($(wildcard $(mac_sdk_root)),)
|
||||
$(warning *****************************************************)
|
||||
$(warning * You are building on Mac OSX 10.6.)
|
||||
$(warning * Can not find SDK 10.5 at $(sdk_105_root))
|
||||
$(warning * Can not find SDK $(mac_sdk_version) at $(mac_sdk_root))
|
||||
$(warning *****************************************************)
|
||||
$(error Stop.)
|
||||
endif
|
||||
|
||||
HOST_GLOBAL_CFLAGS += -isysroot $(sdk_105_root) -mmacosx-version-min=10.5
|
||||
HOST_GLOBAL_LDFLAGS += -isysroot $(sdk_105_root) -mmacosx-version-min=10.5
|
||||
endif # build_mac_version is 10.6
|
||||
HOST_GLOBAL_CFLAGS += -isysroot $(mac_sdk_root) -mmacosx-version-min=$(mac_sdk_version)
|
||||
HOST_GLOBAL_LDFLAGS += -isysroot $(mac_sdk_root) -mmacosx-version-min=$(mac_sdk_version)
|
||||
|
||||
HOST_GLOBAL_CFLAGS += -fPIC -funwind-tables
|
||||
HOST_NO_UNDEFINED_LDFLAGS := -Wl,-undefined,error
|
||||
|
|
Loading…
Reference in a new issue