1 # hdw - linux gcc package
3 # author: hackbard@hackdaworld.dyndns.org
7 # [D] gcc-3.4.4.tar.bz2 ftp://ftp.fu-berlin.de/unix/gnu/gcc/gcc-3.4.4/
8 # [D] gcc-g++-3.4.4.tar.bz2 ftp://ftp.fu-berlin.de/unix/gnu/gcc/gcc-3.4.4/
9 # [D] gcc-g77-3.4.4.tar.bz2 ftp://ftp.fu-berlin.de/unix/gnu/gcc/gcc-3.4.4/
12 [ "$ver" = "cvs" ] && extraver=""
14 confopt="$confopt --enable-languages=c,c++,f77"
15 confopt="$confopt --enable-shared --enable-clocale=gnu"
16 confopt="$confopt --enable-threads=posix --enable-__cxa_atexit"
17 confopt="$confopt --libexecdir=$prefix/lib"
19 # unset CFLAGS CXXFLAGS
22 echo "extracting c++ and fortran sources ..."
23 tar --use-compress-program=$compress -xvf $archdir/gcc-g++-$ver.tar.bz2
24 tar --use-compress-program=$compress -xvf $archdir/gcc-g77-$ver.tar.bz2
25 echo "patching source (libiberty) ..."
26 mv ./libiberty/Makefile.in ./tmp~
27 sed 's%install_to_$(INSTALL_DEST) %%' ./tmp~ > ./libiberty/Makefile.in
31 ln -sf ../usr/bin/cpp $root/lib &&
32 ln -sf gcc $root/usr/bin/cc
36 mkdir -p ../gcc-build && cd ../gcc-build
37 ../gcc${extraver}/configure $confopt