Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv28471/scripts
Modified Files:
build.sh functions lilo
Log Message:
- added new functions to build system: disable_et_dyn () & enable_et_dyn ()
Index: build.sh
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/build.sh,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- build.sh 22 Dec 2003 21:59:24 -0000 1.64
+++ build.sh 27 Dec 2003 14:38:27 -0000 1.65
@@ -285,6 +285,10 @@
pushd $SOURCEDIR > /dev/null
echo -n " (in $SOURCEDIR)"
fi
+
+ # (re-)enable the compilation as ET_DYN in case a script disabled it
+ enable_et_dyn ()
+
echo
t1=$(date +"%s")
Index: functions
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/functions,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- functions 23 Dec 2003 14:10:36 -0000 1.44
+++ functions 27 Dec 2003 14:38:27 -0000 1.45
@@ -394,3 +394,21 @@
return 1
fi
}
+
+function disable_et_dyn () {
+ if [ "$CONFIG_GCC_ET_DYN" = "y" ]; then
+ GCCSPECDIR=$(dirname $(gcc --print-libgcc-file-name))
+ if [ -d $GCCSPECDIR/specs.orig ]; then
+ ln -sf specs.orig $GCCSPECDIR/specs || exit 1
+ fi
+ fi
+}
+
+function enable_et_dyn () {
+ if [ "$CONFIG_GCC_ET_DYN" = "y" ]; then
+ GCCSPECDIR=$(dirname $(gcc --print-libgcc-file-name))
+ if [ -d $GCCSPECDIR/specs.et_dyn ]; then
+ ln -sf specs.et_dyn $GCCSPECDIR/specs || exit 1
+ fi
+ fi
+}
Index: lilo
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/lilo,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- lilo 13 Oct 2003 17:36:08 -0000 1.5
+++ lilo 27 Dec 2003 14:38:27 -0000 1.6
@@ -26,6 +26,7 @@
case $1 in
build )
+ disable_et_dyn ()
make $PMAKE || exit 1
strip_debug
;;
|