mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
704 B

  1. #!/bin/bash
  2. for x in gcc2 gcc32 gcc33 gcc34 gcc40 gcc41 gcc42 ; do
  3. pkgfork gcc $x
  4. # GCC 2.x and 3.2.x cannot be used as the default C/C++ compilers because they
  5. # don't support the --with-sysroot configure option.
  6. case $x in
  7. gcc2|gcc32) ;;
  8. *)
  9. CFGTEMP_DEFAULT_CC="$x Use_${x}_as_default_C_compiler $CFGTEMP_DEFAULT_CC"
  10. CFGTEMP_DEFAULT_CXX="$x Use_${x}_as_default_C++_compiler $CFGTEMP_DEFAULT_CXX"
  11. ;;
  12. esac
  13. CFGTEMP_DEFAULT_KCC="$x Use_${x}_as_default_kernel_compiler $CFGTEMP_DEFAULT_KCC"
  14. CFGTEMP_DEFAULT_F77="$x Use_${x}_as_default_Fortran_77_compiler $CFGTEMP_DEFAULT_F77"
  15. [[ "$x" == gcc4* ]] && CFGTEMP_DEFAULT_F95="$x Use_${x}_as_default_Fortran_95_compiler $CFGTEMP_DEFAULT_F95"
  16. done