diff options
author | David 'Digit' Turner <digit@google.com> | 2009-08-21 23:10:16 -0700 |
---|---|---|
committer | David 'Digit' Turner <digit@google.com> | 2009-08-21 23:10:16 -0700 |
commit | b95f8924a76897bd0f983a9be07dc618d8b0e3d3 (patch) | |
tree | fe47226de6210a4fc7cc1af209a16517e33c376c | |
parent | 945a054848c64af7351620f09101f7a687498d34 (diff) | |
download | qemu-donut-release.tar.gz |
Fix Leopard-built emulator binaries to run on Tiger.android-sdk-tools_r2android-sdk-1.6_r2android-sdk-1.6_r1android-sdk-1.6-docs_r1android-1.6_r2android-1.6_r1.5android-1.6_r1.4android-1.6_r1.3android-1.6_r1.2android-1.6_r1.1android-1.6_r1donut-release2donut-releasedonut
The bug was that the full Android build system treats LOCAL_LDFLAGS and LOCAL_LDLIBS
slightly differently. The 10.4 SDK was not properly used when linking on Leopard, and
this resulted in hidden dependencies on late versions of CoreFoundation and AppKit
that are not available on Tiger.
Note that this change doesn't break the standalone build (standalone Leopard binaries
still run on Tiger, as they did previously).
-rw-r--r-- | Makefile.android | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Makefile.android b/Makefile.android index 17d89bde87..a844a6b403 100644 --- a/Makefile.android +++ b/Makefile.android @@ -21,7 +21,7 @@ ifeq ($(BUILD_DEBUG_EMULATOR),true) -fno-PIC -falign-functions=0 endif -MY_LDFLAGS := +MY_LDLIBS := # this is needed to build the emulator on 64-bit Linux systems ifeq ($(HOST_OS)-$(HOST_ARCH),linux-x86) @@ -58,8 +58,8 @@ ifeq ($(HOST_OS),darwin) $(info Please install the 10.4 SDK on this machine at $(TIGER_SDK)) $(error Aborting the build.) endif - MY_CFLAGS += -isysroot $(TIGER_SDK) -mmacosx-version-min=10.4 - MY_LDFLAGS += -isysroot $(TIGER_SDK) -Wl,-syslibroot,$(TIGER_SDK) -mmacosx-version-min=10.4 + 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 endif endif MY_CC := $(HOST_CC) @@ -78,8 +78,8 @@ endif ifneq ($(combo_target)$(TARGET_SIMULATOR),HOST_true) ifneq ($(HOST_ARCH),x86_64) - MY_CFLAGS += -m32 - MY_LDFLAGS += -m32 + MY_CFLAGS += -m32 + MY_LDLIBS += -m32 endif endif @@ -105,7 +105,7 @@ include $(CLEAR_VARS) LOCAL_NO_DEFAULT_COMPILER_FLAGS := true LOCAL_CC := $(MY_CC) LOCAL_CFLAGS := $(MY_CFLAGS) $(LOCAL_CFLAGS) -LOCAL_LDFLAGS := $(MY_LDFLAGS) +LOCAL_LDLIBS := $(MY_LDLIBS) LOCAL_MODULE := emulator-tcg TCG_TARGET := $(HOST_ARCH) @@ -181,7 +181,7 @@ include $(CLEAR_VARS) LOCAL_NO_DEFAULT_COMPILER_FLAGS := true LOCAL_CC := $(MY_CC) LOCAL_MODULE := emulator-arm -LOCAL_LDFLAGS := $(MY_LDFLAGS) +LOCAL_LDLIBS := $(MY_LDLIBS) LOCAL_CFLAGS := $(MY_CFLAGS) $(LOCAL_CFLAGS) LOCAL_STATIC_LIBRARIES := emulator-hw @@ -307,7 +307,7 @@ ifeq ($(BUILD_QEMU_AUDIO_LIB),true) LOCAL_NO_DEFAULT_COMPILER_FLAGS := true LOCAL_CC := $(MY_CC) LOCAL_MODULE := libqemu-audio - LOCAL_LDFLAGS := $(MY_LDFLAGS) + LOCAL_LDLIBS := $(MY_LDLIBS) LOCAL_CFLAGS := -Wno-sign-compare \ -fno-strict-aliasing -W -Wall -Wno-unused-parameter \ @@ -341,7 +341,7 @@ LOCAL_NO_DEFAULT_COMPILER_FLAGS := true LOCAL_CC := $(MY_CC) LOCAL_MODULE := emulator LOCAL_STATIC_LIBRARIES := emulator-hw emulator-arm emulator-tcg -LOCAL_LDFLAGS := $(MY_LDFLAGS) +LOCAL_LDLIBS := $(MY_LDLIBS) # don't remove the -fno-strict-aliasing, or you'll break things # (e.g. slirp2/network support) |