From 04d3f4ea9953ed01898d336c4b175273b457394c Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 1 May 2010 11:40:39 +0200 Subject: allow building of glibc toolchain in debug mode --- toolchain/glibc/Makefile | 3 +++ 1 file changed, 3 insertions(+) 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) \ -- cgit v1.2.3