From: <smi...@us...> - 2003-12-27 02:52:54
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv3585/scripts Modified Files: gcc Log Message: - added support for compiling all executables as ET_DYN Index: gcc =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/gcc,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- gcc 24 Dec 2003 23:14:36 -0000 1.12 +++ gcc 27 Dec 2003 02:52:51 -0000 1.13 @@ -37,6 +37,7 @@ touch ./.done_patch_protector fi fi + if [ "$CONFIG_GCC_PIE" = "y" ]; then if [ ! -e ./.done_patch_pie ]; then bzcat $DL_DIR/src/gcc-3.3.2-pie-1.diff.bz2 | patch -p1 || exit 1 @@ -60,6 +61,25 @@ # install it, so we use the same version everywhere make install-no-fixedincludes || exit 1 + + if [ "$CONFIG_GCC_ET_DYN" = "y" ]; then + pushd $(find_src_dir et_dyn) > /dev/null + cd linux || exit 1 + GLIBC=$(find_src_dir glibc) + GLIBC=${GLIBC##*/} + cp $GLIBC/*.S . || exit 1 + make || exit 1 + GCCSPECDIR=$(dirname $(gcc --print-libgcc-file-name)) + cp crt1S.o $GCCSPECDIR || exit 1 + popd > /dev/null + GCCVER=${GCCSPECDIR##*/} + test ! -f $GCCSPECDIR/specs.orig && cp $GCCSPECDIR/specs $GCCSPECDIR/specs.orig + echo $GCCSPECDIR/ + bzcat $DL_DIR/src/gcc-$GCCVER-et_dyn-specs.bz2 > $GCCSPECDIR/specs.et_dyn || exit 1 + ln -sf specs.orig $GCCSPECDIR/specs || exit 1 + ln -sf specs.et_dyn $GCCSPECDIR/specs || exit 1 + fi + ;; install ) |