#
# author: hackbard@hackdaworld.dyndns.org
#
-# [V] 4.0.0
+# [V] 4.1.1
# [S] 2-5
-# [D] gcc-4.0.0.tar.bz2 ftp://ftp.fu-berlin.de/unix/gnu/gcc/gcc-4.0.0/
-# [D] gcc-g++-4.0.0.tar.bz2 ftp://ftp.fu-berlin.de/unix/gnu/gcc/gcc-4.0.0/
-# [D] gcc-g77-4.0.0.tar.bz2 ftp://ftp.fu-berlin.de/unix/gnu/gcc/gcc-4.0.0/
+# [D] gcc-4.1.1.tar.bz2 ftp://ftp.fu-berlin.de/unix/gnu/gcc/gcc-4.1.1/
+# [D] gcc-g++-4.1.1.tar.bz2 ftp://ftp.fu-berlin.de/unix/gnu/gcc/gcc-4.1.1/
+# [D] gcc-g77-4.1.1.tar.bz2 ftp://ftp.fu-berlin.de/unix/gnu/gcc/gcc-4.1.1/
extraver="-${ver}"
[ "$ver" = "cvs" ] && extraver=""
echo "extracting c++ and fortran sources ..."
tar --use-compress-program=$compress -xvf $archdir/gcc-g++-$ver.tar.bz2
tar --use-compress-program=$compress -xvf $archdir/gcc-g77-$ver.tar.bz2
- echo "patching source (libiberty) ..."
- mv ./libiberty/Makefile.in ./tmp~
- sed 's%install_to_$(INSTALL_DEST) %%' ./tmp~ > ./libiberty/Makefile.in
+
+ echo "patching Makefile (libiberty) ..."
+ sed 's%install_to_$(INSTALL_DEST) %%' libiberty/Makefile.in > tmp~
+ mv tmp~ libiberty/Makefile.in
+
+ echo "patching Makefile (gcc) ..."
+ sed -e 's@^XCFLAGS =$@& -fomit-frame-pointer@' \
+ -e 's@\./fixincl\.sh@-c true@' gcc/Makefile.in > tmp~
+ mv tmp~ gcc/Makefile.in
+
+ echo "patching gccbug ..."
+ sed 's/@have_mktemp_command@/yes/' gcc/gccbug.in > tmp~
+ mv tmp~ gcc/gccbug.in
}
post_install() {