[Lunar-commits] r19237 - lunar/trunk/var/lib/lunar/compilers
Auke Kok
sofar at lunar-linux.org
Tue Mar 14 05:15:49 UTC 2006
Author: sofar
Date: 2006-03-14 05:15:44 +0000 (Tue, 14 Mar 2006)
New Revision: 19237
Modified:
lunar/trunk/var/lib/lunar/compilers/c++
lunar/trunk/var/lib/lunar/compilers/cc
lunar/trunk/var/lib/lunar/compilers/g++
lunar/trunk/var/lib/lunar/compilers/gcc
lunar/trunk/var/lib/lunar/compilers/ld
lunar/trunk/var/lib/lunar/compilers/make
Log:
Force CFLAGS, CXXFLAGS when calling cc/c++. Force LDFLAGS (with -Wl, part stripped) when calling ld. This works and should strip more programs, compile more with chosen optimizations. You may notice some flags passed twice to programs, but I consider this cosmetic and not harmful.
Modified: lunar/trunk/var/lib/lunar/compilers/c++
===================================================================
--- lunar/trunk/var/lib/lunar/compilers/c++ 2006-03-14 04:26:05 UTC (rev 19236)
+++ lunar/trunk/var/lib/lunar/compilers/c++ 2006-03-14 05:15:44 UTC (rev 19237)
@@ -3,8 +3,8 @@
PROG=$(PATH=${PATH//\/var\/lib\/lunar\/compilers/} type -p ${0##*/})
if [[ -n "$LUNAR_DEBUG" ]] ; then
- echo "++ $CXX_EXT $PROG $CCOPT \"$@\"" >&2
+ echo "++ $CXX_EXT $PROG $CCOPT $CXXFLAGS $@" >&2
fi
-exec $CXX_EXT $PROG $CCOPT "$@"
+exec $CXX_EXT $PROG $CCOPT $CXXFLAGS "$@"
Modified: lunar/trunk/var/lib/lunar/compilers/cc
===================================================================
--- lunar/trunk/var/lib/lunar/compilers/cc 2006-03-14 04:26:05 UTC (rev 19236)
+++ lunar/trunk/var/lib/lunar/compilers/cc 2006-03-14 05:15:44 UTC (rev 19237)
@@ -3,8 +3,8 @@
PROG=$(PATH=${PATH//\/var\/lib\/lunar\/compilers/} type -p ${0##*/})
if [[ -n "$LUNAR_DEBUG" ]] ; then
- echo "++ $CC_EXT $PROG $COPT \"$@\"" >&2
+ echo "++ $CC_EXT $PROG $COPT $CFLAGS $@" >&2
fi
+
+exec $CC_EXT $PROG $COPT $CFLAGS $@
-exec $CC_EXT $PROG $COPT "$@"
-
Modified: lunar/trunk/var/lib/lunar/compilers/g++
===================================================================
--- lunar/trunk/var/lib/lunar/compilers/g++ 2006-03-14 04:26:05 UTC (rev 19236)
+++ lunar/trunk/var/lib/lunar/compilers/g++ 2006-03-14 05:15:44 UTC (rev 19237)
@@ -3,8 +3,8 @@
PROG=$(PATH=${PATH//\/var\/lib\/lunar\/compilers/} type -p ${0##*/})
if [[ -n "$LUNAR_DEBUG" ]] ; then
- echo "++ $CXX_EXT $PROG $CCOPT \"$@\"" >&2
+ echo "++ $CXX_EXT $PROG $CCOPT $CXXFLAGS $@" >&2
fi
+
+exec $CXX_EXT $PROG $CCOPT $CXXFLAGS $@
-exec $CXX_EXT $PROG $CCOPT "$@"
-
Modified: lunar/trunk/var/lib/lunar/compilers/gcc
===================================================================
--- lunar/trunk/var/lib/lunar/compilers/gcc 2006-03-14 04:26:05 UTC (rev 19236)
+++ lunar/trunk/var/lib/lunar/compilers/gcc 2006-03-14 05:15:44 UTC (rev 19237)
@@ -3,8 +3,8 @@
PROG=$(PATH=${PATH//\/var\/lib\/lunar\/compilers/} type -p ${0##*/})
if [[ -n "$LUNAR_DEBUG" ]] ; then
- echo "++ $CC_EXT $PROG $COPT \"$@\"" >&2
+ echo "++ $CC_EXT $PROG $COPT $CFLAGS $@" >&2
fi
+
+exec $CC_EXT $PROG $COPT $CFLAGS $@
-exec $CC_EXT $PROG $COPT "$@"
-
Modified: lunar/trunk/var/lib/lunar/compilers/ld
===================================================================
--- lunar/trunk/var/lib/lunar/compilers/ld 2006-03-14 04:26:05 UTC (rev 19236)
+++ lunar/trunk/var/lib/lunar/compilers/ld 2006-03-14 05:15:44 UTC (rev 19237)
@@ -3,7 +3,8 @@
PROG=$(PATH=${PATH//\/var\/lib\/lunar\/compilers/} type -p ${0##*/})
if [[ -n "$LUNAR_DEBUG" ]] ; then
- echo "++ $PROG \"$@\"" >&2
+ echo "++ $PROG ${LDFLAGS//-Wl,/} $@" >&2
fi
-exec $PROG "$@"
+exec $PROG ${LDFLAGS//-Wl,/} $@
+
Modified: lunar/trunk/var/lib/lunar/compilers/make
===================================================================
--- lunar/trunk/var/lib/lunar/compilers/make 2006-03-14 04:26:05 UTC (rev 19236)
+++ lunar/trunk/var/lib/lunar/compilers/make 2006-03-14 05:15:44 UTC (rev 19237)
@@ -3,8 +3,8 @@
PROG=$(PATH=${PATH//\/var\/lib\/lunar\/compilers/} type -p ${0##*/})
if [[ -n "$LUNAR_DEBUG" ]] ; then
- echo "++ $MAKE_EXT $PROG ${MAKES:+-j$MAKES} \"$@\"" >&2
+ echo "++ $MAKE_EXT $PROG ${MAKES:+-j$MAKES} $@" >&2
fi
-exec $MAKE_EXT $PROG ${MAKES:+-j$MAKES} "$@"
+exec $MAKE_EXT $PROG ${MAKES:+-j$MAKES} $@
More information about the Lunar-commits
mailing list