summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-05-01 11:40:39 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-05-01 11:40:39 +0200
commit04d3f4ea9953ed01898d336c4b175273b457394c (patch)
tree2b76293b2606df23cfe49bdc1cce41b7b86ab1c7 /toolchain
parente42433d7127f9a50b5dae57fff331ecfdc9883c4 (diff)
allow building of glibc toolchain in debug mode
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/glibc/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/toolchain/glibc/Makefile b/toolchain/glibc/Makefile
index bfd56f9fe..d494e0dfc 100644
--- a/toolchain/glibc/Makefile
+++ b/toolchain/glibc/Makefile
@@ -9,6 +9,9 @@ include ${TOPDIR}/mk/buildhlp.mk
# glibc does not compile with Os
TARGET_CFLAGS:=$(subst Os,O2,$(TARGET_CFLAGS))
+ifneq ($(ADK_DEBUG),)
+TARGET_CFLAGS+=-O2
+endif
GLIBC_CONFOPTS:= \
--build=$(GNU_HOST_NAME) \