aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-07-31 05:45:18 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-07-31 05:45:18 -0700
commita6940f7ecb6d7f098a0a58ea5c3ad313be4a23a7 (patch)
tree6a95c4359951f7945fecc2533443f730a2d2c135
parenta69c35e9e398346ba34b7c82f56f2b5565ebabfe (diff)
parent466f5484c44d27d904250d33b95aff03822b1cc4 (diff)
downloadexternal_qemu-a6940f7ecb6d7f098a0a58ea5c3ad313be4a23a7.zip
external_qemu-a6940f7ecb6d7f098a0a58ea5c3ad313be4a23a7.tar.gz
external_qemu-a6940f7ecb6d7f098a0a58ea5c3ad313be4a23a7.tar.bz2
Merge change 9153 into donut
* changes: Make ./android-configure.sh --debug work as advertized.
-rw-r--r--Makefile.android7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.android b/Makefile.android
index 2e146cc..17d89bd 100644
--- a/Makefile.android
+++ b/Makefile.android
@@ -14,6 +14,13 @@ MY_CFLAGS := $(CONFIG_INCLUDES) -O2 -g \
-falign-functions=0 \
-fomit-frame-pointer \
+# Overwrite configuration for debug builds.
+#
+ifeq ($(BUILD_DEBUG_EMULATOR),true)
+ MY_CFLAGS := $(CONFIG_INCLUDES) -O0 -g \
+ -fno-PIC -falign-functions=0
+endif
+
MY_LDFLAGS :=
# this is needed to build the emulator on 64-bit Linux systems