Merge "Fix building on modern versions of Xcode and OS X."
This commit is contained in:
commit
79d8f41e1d
|
@ -43,6 +43,7 @@ $(combo_2nd_arch_prefix)HOST_TOOLCHAIN_FOR_CLANG := $($(combo_2nd_arch_prefix)HO
|
||||||
$(combo_2nd_arch_prefix)HOST_AR := $(AR)
|
$(combo_2nd_arch_prefix)HOST_AR := $(AR)
|
||||||
|
|
||||||
$(combo_2nd_arch_prefix)HOST_GLOBAL_CFLAGS += -isysroot $(mac_sdk_root) -mmacosx-version-min=$(mac_sdk_version) -DMACOSX_DEPLOYMENT_TARGET=$(mac_sdk_version)
|
$(combo_2nd_arch_prefix)HOST_GLOBAL_CFLAGS += -isysroot $(mac_sdk_root) -mmacosx-version-min=$(mac_sdk_version) -DMACOSX_DEPLOYMENT_TARGET=$(mac_sdk_version)
|
||||||
|
$(combo_2nd_arch_prefix)HOST_GLOBAL_CPPFLAGS += -isystem $(mac_sdk_path)/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1
|
||||||
$(combo_2nd_arch_prefix)HOST_GLOBAL_LDFLAGS += -isysroot $(mac_sdk_root) -Wl,-syslibroot,$(mac_sdk_root) -mmacosx-version-min=$(mac_sdk_version)
|
$(combo_2nd_arch_prefix)HOST_GLOBAL_LDFLAGS += -isysroot $(mac_sdk_root) -Wl,-syslibroot,$(mac_sdk_root) -mmacosx-version-min=$(mac_sdk_version)
|
||||||
|
|
||||||
$(combo_2nd_arch_prefix)HOST_GLOBAL_CFLAGS += -fPIC -funwind-tables
|
$(combo_2nd_arch_prefix)HOST_GLOBAL_CFLAGS += -fPIC -funwind-tables
|
||||||
|
|
|
@ -43,6 +43,7 @@ HOST_TOOLCHAIN_FOR_CLANG := $(HOST_TOOLCHAIN_ROOT)
|
||||||
HOST_AR := $(AR)
|
HOST_AR := $(AR)
|
||||||
|
|
||||||
HOST_GLOBAL_CFLAGS += -isysroot $(mac_sdk_root) -mmacosx-version-min=$(mac_sdk_version) -DMACOSX_DEPLOYMENT_TARGET=$(mac_sdk_version)
|
HOST_GLOBAL_CFLAGS += -isysroot $(mac_sdk_root) -mmacosx-version-min=$(mac_sdk_version) -DMACOSX_DEPLOYMENT_TARGET=$(mac_sdk_version)
|
||||||
|
HOST_GLOBAL_CPPFLAGS += -isystem $(mac_sdk_path)/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1
|
||||||
HOST_GLOBAL_LDFLAGS += -isysroot $(mac_sdk_root) -Wl,-syslibroot,$(mac_sdk_root) -mmacosx-version-min=$(mac_sdk_version)
|
HOST_GLOBAL_LDFLAGS += -isysroot $(mac_sdk_root) -Wl,-syslibroot,$(mac_sdk_root) -mmacosx-version-min=$(mac_sdk_version)
|
||||||
|
|
||||||
HOST_GLOBAL_CFLAGS += -fPIC -funwind-tables
|
HOST_GLOBAL_CFLAGS += -fPIC -funwind-tables
|
||||||
|
|
|
@ -9,7 +9,7 @@ ifndef build_mac_version
|
||||||
|
|
||||||
build_mac_version := $(shell sw_vers -productVersion)
|
build_mac_version := $(shell sw_vers -productVersion)
|
||||||
|
|
||||||
mac_sdk_versions_supported := 10.6 10.7 10.8
|
mac_sdk_versions_supported := 10.6 10.7 10.8 10.9
|
||||||
ifneq ($(strip $(MAC_SDK_VERSION)),)
|
ifneq ($(strip $(MAC_SDK_VERSION)),)
|
||||||
mac_sdk_version := $(MAC_SDK_VERSION)
|
mac_sdk_version := $(MAC_SDK_VERSION)
|
||||||
ifeq ($(filter $(mac_sdk_version),$(mac_sdk_versions_supported)),)
|
ifeq ($(filter $(mac_sdk_version),$(mac_sdk_versions_supported)),)
|
||||||
|
|
Loading…
Reference in New Issue