summaryrefslogtreecommitdiff
path: root/scripts/build/cc/gcc.sh
diff options
context:
space:
mode:
authorTitus von Boxberg <titus@v9g.de>2010-05-24 14:34:55 (GMT)
committerTitus von Boxberg <titus@v9g.de>2010-05-24 14:34:55 (GMT)
commitd2d3c15c1409e70ed758aab0e5da31ff15c3f500 (patch)
treeb747774db268769dd585f28f86cfa43b18d596b2 /scripts/build/cc/gcc.sh
parent9bc6e2e62533497463f3a718c0125eb88de4a19c (diff)
cc/gcc: Make usage of --enable-target-optspace configurable
Optionally configure to compile gcc-internal libs with -Os. yann.morin.1998@anciens.enib.fr: Rename the config options, it is in the GCC /namespace/.
Diffstat (limited to 'scripts/build/cc/gcc.sh')
-rw-r--r--scripts/build/cc/gcc.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
index fae185e..2e7bb04 100644
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -171,6 +171,10 @@ do_cc_core() {
extra_config+=("--with-libelf=${CT_COMPLIBS_DIR}")
fi
+ if [ "${CT_CC_GCC_ENABLE_TARGET_OPTSPACE}" = "y" ]; then
+ extra_config+=("--enable-target-optspace")
+ fi
+
CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"
# Use --with-local-prefix so older gccs don't look in /usr/local (http://gcc.gnu.org/PR10532)
@@ -190,7 +194,6 @@ do_cc_core() {
--disable-nls \
--enable-symvers=gnu \
--enable-languages="${lang_opt}" \
- --enable-target-optspace \
${CT_CC_CORE_EXTRA_CONFIG}
if [ "${build_libgcc}" = "yes" ]; then
@@ -355,6 +358,10 @@ do_cc() {
extra_config+=("--enable-threads=posix")
fi
+ if [ "${CT_CC_GCC_ENABLE_TARGET_OPTSPACE}" = "y" ]; then
+ extra_config+=("--enable-target-optspace")
+ fi
+
CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"
# --enable-symvers=gnu really only needed for sh4 to work around a
@@ -380,7 +387,6 @@ do_cc() {
--enable-symvers=gnu \
--enable-c99 \
--enable-long-long \
- --enable-target-optspace \
${CT_CC_EXTRA_CONFIG}
if [ "${CT_CANADIAN}" = "y" ]; then