# Recipe for version 3.4.2 by Andre Detsch, on Mon Sep 13 22:14:52 BRT 2004
# by Hisham Muhammad, Guilherme Bedin

url=$ftpGnu/gcc/gcc-3.4.2/gcc-3.4.2.tar.bz2

compile_version=1.7.1
recipe_type=configure
needs_build_directory=yes
configure_options=(
   "--enable-shared"
   "--enable-threads=posix"
   "--enable-__cxa_atexit"
   "--enable-clocale=gnu"
   "--enable-languages=c,c++"
#   "--build=i386-pc-linux-gnu"
#   "--host=i386-pc-linux-gnu"
#   "--target=i386-pc-linux-gnu"
#   "--enable-languages=c,c++,objc"
)
pre_link() {
   cd "$target/bin"
   ln -s gcc cc
   cd "$target/lib"
   ln -s "$target/bin/cpp" .
   rm -f libiberty.a
   cd "$goboExecutables"
   ln -nsf "$target/bin/cc" .
   cd "$goboLibraries"
   ln -nsf "$target/lib/cpp" .
}
