[Lunar-commits] r14606 - lunar/trunk/var/lib/lunar/functions

Auke Kok sofar at lunar-linux.org
Fri May 6 16:36:03 UTC 2005


Author: sofar
Date: 2005-05-06 16:36:02 +0000 (Fri, 06 May 2005)
New Revision: 14606

Modified:
   lunar/trunk/var/lib/lunar/functions/optimize.lunar
Log:
Fix for this recently discovered bug: http://lunar-linux.org/?q=node/view/835. I'm also allowing -S to be passed as we have sufficient protection now from new sers that they should check the sanity of their optimizations.


Modified: lunar/trunk/var/lib/lunar/functions/optimize.lunar
===================================================================
--- lunar/trunk/var/lib/lunar/functions/optimize.lunar	2005-05-06 16:16:31 UTC (rev 14605)
+++ lunar/trunk/var/lib/lunar/functions/optimize.lunar	2005-05-06 16:36:02 UTC (rev 14606)
@@ -640,21 +640,18 @@
       case $A in
          Strip)     LDFLAGS="$LDFLAGS -s"
                     ;;
-         Optimize)  LDFLAGS="$LDFLAGS -Wl,-O1"
+         Optimize)  WL="$WL,-O1"
                     ;;
-         Reduce)    LDFLAGS="$LDFLAGS -Wl,--as-needed"
+         Reduce)    WL="$WL,--as-needed"
                     ;;
-# The Debug option breaks some modules (eg: tar and gzip, just to mention a
-# few), so this option should either be removed, or remain "deactivated"
-# untill this has been resolved but the hatch is that we don't know how many
-# modules is affected by it... See bug No. 75. Or contact me (Niki Guldbran
-# <nikig at vip.cybercity.dk>)
-#
-#         Debug)     LDFLAGS="$LDFLAGS -S"
-#                    ;;
+         Debug)     LDFLAGS="$LDFLAGS -S"
+                    ;;
          Combreloc) LDFLAGS="$LDFLAGS -z combreloc"
                     ;;
       esac
+	  if [ -n "$WL" ]; then
+	    LDFLAGS="$LDFLAGS -Wl$WL"
+	  fi
    done
 }
 



More information about the Lunar-commits mailing list