[PATCH 1 of 1] config+build gcc: Make usage of --enable-target-optspace configurable

Titus von Boxberg titus@v9g.de
Sun May 23 18:13:00 GMT 2010


# HG changeset patch
# User Titus von Boxberg <titus@v9g.de>
# Date 1274559960 -7200
# Node ID 5b51b9c54008623d8ceadf8c60196728107f2463
# Parent  349535b3112f364d9c519dd2fb5866285c4d74db
config+build gcc: Make usage of --enable-target-optspace configurable

Optionally configure to compile gcc-internal libs with -Os.

diff -r 349535b3112f -r 5b51b9c54008 config/cc/gcc.in
--- a/config/cc/gcc.in	Sat May 22 22:01:18 2010 +0200
+++ b/config/cc/gcc.in	Sat May 22 22:26:00 2010 +0200
@@ -259,6 +259,15 @@
     help
       Extra flags to pass onto ./configure when configuring gcc.
 
+config CC_ENABLE_TARGET_OPTSPACE
+    bool
+    prompt "Optimize gcc libs for size"
+    default y
+    help
+      Pass --enable-target-optspace to crossgcc's configure.
+
+      This will compile crossgcc's libs with -Os.
+
 config CC_PKGVERSION
     string
     prompt "gcc ID string"
diff -r 349535b3112f -r 5b51b9c54008 scripts/build/cc/gcc.sh
--- a/scripts/build/cc/gcc.sh	Sat May 22 22:01:18 2010 +0200
+++ b/scripts/build/cc/gcc.sh	Sat May 22 22:26:00 2010 +0200
@@ -171,6 +171,10 @@
         extra_config+=("--with-libelf=${CT_COMPLIBS_DIR}")
     fi
 
+    if [ "${CT_CC_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 @@
         --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 @@
         extra_config+=("--enable-threads=posix")
     fi
 
+    if [ "${CT_CC_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 @@
         --enable-symvers=gnu                        \
         --enable-c99                                \
         --enable-long-long                          \
-        --enable-target-optspace                    \
         ${CT_CC_EXTRA_CONFIG}
 
     if [ "${CT_CANADIAN}" = "y" ]; then

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list