summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-03-17 14:47:02 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-03-17 14:47:02 +0100
commita5ad35245264679bda4e2747c6e8c0e77eda7fe3 (patch)
tree1e1452d64c57c0bf2c43f708105701b1b518aada /toolchain
parent5dd0d19f14b28b17f377f84dffd4bc3c10db90c5 (diff)
add optimized flags if ADK_DEBUG for eglibc build
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/eglibc/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/toolchain/eglibc/Makefile b/toolchain/eglibc/Makefile
index f52cf0717..863cd88ba 100644
--- a/toolchain/eglibc/Makefile
+++ b/toolchain/eglibc/Makefile
@@ -7,6 +7,10 @@ include Makefile.inc
include ${TOPDIR}/mk/buildhlp.mk
+ifneq ($(ADK_DEBUG),)
+TARGET_CFLAGS+= -O2
+endif
+
EGLIBC_CONFOPTS:= \
--build=$(GNU_HOST_NAME) \
--host=$(REAL_GNU_TARGET_NAME) \