# --- ROCK-COPYRIGHT-NOTE-BEGIN --- # # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # Please add additional copyright information _after_ the line containing # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by # the ./scripts/Create-CopyPatch script. Do not edit this copyright text! # # ROCK Linux: rock-src/package/base/gcc/wrappers.in # ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. A copy of the GNU General Public # License can be found at Documentation/COPYING. # # Many people helped and are helping developing ROCK Linux. Please # have a look at https://www.rocklinux.org/ and the Documentation/TEAM # file for details. # # --- ROCK-COPYRIGHT-NOTE-END --- gcc_build_wrapper() { local x="$1" y z ; shift for y ; do local ver=`$y -dumpversion 2> /dev/null` [ $? != 0 ] && continue case "$ver" in 2.*) z="$x,GCC,GCC2" ;; 3.*) z="$x,GCC,GCC3" ;; *) continue ;; esac if [ $x = KCC ] ; then build_wrapper $x $y else build_wrapper $z $y fi done } gcc_build_wrapper CC ${arch_target}-cc ${arch_target}-gcc{-2,-32,-33,-34,} gcc_build_wrapper KCC ${arch_target}-kcc{-2,-32,-33,-34,} if [ $stagelevel -gt 1 -o "$ROCKCFG_USE_CROSSCC" = 0 ]; then gcc_build_wrapper CC cc gcc{-2,-32,-33,-34,} gcc_build_wrapper CXX {c,g}++{-2,-32,-33,-34,} gcc_build_wrapper F77 {g,f}77{-2,-32,-33,-34,} gcc_build_wrapper KCC kcc{-2,-32,-33,-34,} fi if [ $stagelevel -le 1 ]; then build_wrapper BUILDCC cc gcc fi