diff options
author | David 'Digit' Turner <digit@android.com> | 2011-03-02 09:49:06 +0100 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2011-03-02 09:49:06 +0100 |
commit | b580d2607b12b893745276c3068d9d09920608dc (patch) | |
tree | a18e2457ae7937085f826cc273ce7b0a3abd9a81 /Makefile.android | |
parent | 68a65132248c244003b820e9ae7c60cda336ba45 (diff) | |
download | external_qemu-b580d2607b12b893745276c3068d9d09920608dc.zip external_qemu-b580d2607b12b893745276c3068d9d09920608dc.tar.gz external_qemu-b580d2607b12b893745276c3068d9d09920608dc.tar.bz2 |
Avoid redefining HOST_CC/CXX when building the emulator.
HOST_CC and HOST_CXX are defined/controlled by the build system.
We don't want to redefine them here because this forces, on Linux,
the use of the 32-bit host toolchain for all other host modules
built after external/qemu.
Change-Id: Ic9dc32b56f5e8d28559b5375178768726ad5cdcc
Diffstat (limited to 'Makefile.android')
-rw-r--r-- | Makefile.android | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile.android b/Makefile.android index 095524a..428b63a 100644 --- a/Makefile.android +++ b/Makefile.android @@ -95,10 +95,9 @@ ifneq ($(BUILD_STANDALONE_EMULATOR),true) HOST_SDK_TOOLCHAIN_PREFIX := prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/bin/i686-linux # Don't do anything if the toolchain is not there ifneq (,$(strip $(wildcard $(HOST_SDK_TOOLCHAIN_PREFIX)-gcc))) - HOST_CC := $(HOST_SDK_TOOLCHAIN_PREFIX)-gcc - HOST_CXX := $(HOST_SDK_TOOLCHAIN_PREFIX)-g++ - HOST_AR := $(HOST_SDK_TOOLCHAIN_PREFIX)-ar - MY_CC := $(HOST_CC) + MY_CC := $(HOST_SDK_TOOLCHAIN_PREFIX)-gcc + MY_CXX := $(HOST_SDK_TOOLCHAIN_PREFIX)-g++ + MY_AR := $(HOST_SDK_TOOLCHAIN_PREFIX)-ar endif # $(HOST_SDK_TOOLCHAIN_PREFIX)-gcc exists endif # HOST_OS == linux @@ -141,7 +140,9 @@ start-emulator-library = \ $(eval include $(CLEAR_VARS)) \ $(eval LOCAL_NO_DEFAULT_COMPILER_FLAGS := true) \ $(eval LOCAL_CC := $(MY_CC)) \ + $(eval LOCAL_CXX := $(MY_CXX)) \ $(eval LOCAL_CFLAGS := $(MY_CFLAGS)) \ + $(eval LOCAL_AR := $(MY_AR)) \ $(eval LOCAL_LDLIBS := $(MY_LDLIBS)) \ $(eval LOCAL_MODULE_TAGS := debug) \ $(eval LOCAL_MODULE := $1) |