浏览代码

allow building of glibc toolchain in debug mode

Waldemar Brodkorb 15 年之前
父节点
当前提交
04d3f4ea99
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      toolchain/glibc/Makefile

+ 3 - 0
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) \