[Lunar-commits] <moonbase> binutils: remove Reduce from lunar menu

Zachary McGrew zmcgrew at lunar-linux.org
Mon Feb 2 00:22:10 CET 2009


commit 1a6faf35d6b57a8c36136aaeed11870d4020082a
Author: Zachary McGrew <zmcgrew at lunar-linux.org>
Date:   Sun Feb 1 15:22:10 2009 -0800

    binutils: remove Reduce from lunar menu
    
    Enabling reduce breaks the builds of many modules like readline, which are a core part of the system.
    
    This helps new people to protect their system.
---
 devel/binutils/plugin.d/optimize-gnu_ld.plugin |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/devel/binutils/plugin.d/optimize-gnu_ld.plugin b/devel/binutils/plugin.d/optimize-gnu_ld.plugin
index 827ac02..9a54c71 100644
--- a/devel/binutils/plugin.d/optimize-gnu_ld.plugin
+++ b/devel/binutils/plugin.d/optimize-gnu_ld.plugin
@@ -20,13 +20,6 @@ plugin_gnu_ld_optimize()
       Optimize)
         LDFLAGS="$LDFLAGS -Wl,-O1"
       ;;
-      Reduce)
-        if echo $LDFLAGS | grep -q 'Wl,-O1' ; then
-          LDFLAGS="$LDFLAGS -Wl,-O1,--as-needed"
-        else
-          LDFLAGS="$LDFLAGS -Wl,--as-needed"
-        fi
-      ;;
       Combreloc)
         LDFLAGS="$LDFLAGS -z combreloc"
       ;;
@@ -76,7 +69,6 @@ EOF
     "Strip" "-s (RECOMMENDED)" $( echo ${LDF[@]} | grep -qw "Strip" && echo "on" || echo "off" ) "Strip all symbols"
     "StripDebug" "-S" $( echo ${LDF[@]} | grep -qw "StripDebug" && echo "on" || echo "off" ) "Strip debug symbols only"
     "Optimize" "-Wl,-O1" $( echo ${LDF[@]} | grep -qw "Optimize" && echo "on" || echo "off" ) "Optimize hash tables during linking"
-    "Reduce" "-Wl,--as-needed" $( echo ${LDF[@]} | grep -qw "Reduce" && echo "on" || echo "off" ) "Reduce the amount of linked libraries if possible"
     "Combreloc" "-z combreloc" $( echo ${LDF[@]} | grep -qw "Combreloc" && echo "on" || echo "off" ) "Combreloc"
     )
   RESULT=`$DIALOG --item-help --separate-output --checklist "Select linker optimizations. These options only apply to the link stage of binaries." 0 0 0 "${OPTIONS[@]}"`


More information about the Lunar-commits mailing list