summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-12-29 09:10:56 (GMT)
committerWaldemar Brodkorb <wbx@openadk.org>2017-12-29 09:11:23 (GMT)
commit045c5a90e2e874076871900919e1d47df6fc204f (patch)
treece591b78adf0cda9d76f9b495e9c67905e789a52 /toolchain
parent7c1a5917027a72682a4b6653eaea4f74b3a63140 (diff)
glibc: use optimized target cflags/cxxflags
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/glibc/Makefile10
1 files changed, 2 insertions, 8 deletions
diff --git a/toolchain/glibc/Makefile b/toolchain/glibc/Makefile
index 358263d..cad3611 100644
--- a/toolchain/glibc/Makefile
+++ b/toolchain/glibc/Makefile
@@ -6,12 +6,6 @@ include ../rules.mk
include Makefile.inc
include ${ADK_TOPDIR}/mk/buildhlp.mk
-ifneq ($(ADK_DEBUG),)
-GLIBC_FLAGS:= -O2 -g3
-else
-GLIBC_FLAGS:= -O2
-endif
-
GLIBC_CONFOPTS:= --build=$(GNU_HOST_NAME) \
--host=$(GNU_TARGET_NAME) \
--with-headers=$(STAGING_TARGET_DIR)/usr/include \
@@ -41,8 +35,8 @@ endif
GLIBC_ENV:= PATH='${TARGET_PATH}' \
BUILD_CC=${CC_FOR_BUILD} \
- CFLAGS="$(GLIBC_FLAGS)" \
- CXXFLAGS="$(GLIBC_FLAGS)" \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ CXXFLAGS="$(TARGET_CXXFLAGS)" \
CC="${TARGET_CC}" \
CXX="${TARGET_CXX}" \
AR="${TARGET_AR}" \