[Lunar-commits] r18956 - lunar/trunk/var/lib/lunar/functions
Auke Kok
sofar at lunar-linux.org
Wed Mar 1 06:28:20 UTC 2006
Author: sofar
Date: 2006-03-01 06:28:17 +0000 (Wed, 01 Mar 2006)
New Revision: 18956
Modified:
lunar/trunk/var/lib/lunar/functions/optimize.lunar
Log:
Add 'bad_flags' back for backward compatibility - this really should be retired in favour for a complete disabling call of all optimizations.
Modified: lunar/trunk/var/lib/lunar/functions/optimize.lunar
===================================================================
--- lunar/trunk/var/lib/lunar/functions/optimize.lunar 2006-03-01 01:31:47 UTC (rev 18955)
+++ lunar/trunk/var/lib/lunar/functions/optimize.lunar 2006-03-01 06:28:17 UTC (rev 18956)
@@ -10,6 +10,29 @@
############################################################
+bad_flags()
+{
+ debug_msg "bad_flags ($@)"
+ verbose_msg "bad_flags \"$@\""
+
+ # maintain some degree of backward compatibility here
+ if [[ "$1" == "ALL" ]]; then
+ unset CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
+ elif [[ "$1" == "compiler" ]]; then
+ unset CFLAGS CXXFLAGS CPPFLAGS
+ elif [[ "$1" == "linker" ]]; then
+ unset LDFLAGS
+ else
+ for BAD_FLAG in "$@" ; do
+ CFLAGS=$(echo $CFLAGS | sed s/$BAD_FLAG//)
+ CXXFLAGS=$(echo $CXXFLAGS | sed s/$BAD_FLAG//)
+ CPPFLAGS=$(echo $CPPFLAGS | sed s/$BAD_FLAG//)
+ LDFLAGS=$(echo $LDFLAGS | sed s/$BAD_FLAG//)
+ done
+ fi
+}
+
+
optimize_menu()
{(
export IFS=$'\t\n'
More information about the Lunar-commits
mailing list