summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-05-04 08:30:14 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-05-04 08:30:14 +0200
commitb0df2da1e44575ae9acf27711f81f9f6dacbf6ec (patch)
tree14b636c80c7d6a22a5c65c7d23100f96c4d863a2
parent5ebef62334e54209fe6852d4fd2dca4b0ece6d5a (diff)
parent04d3f4ea9953ed01898d336c4b175273b457394c (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
-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) \