1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
4 # T2 SDE: package/*/gcc/wrappers.in
5 # Copyright (C) 2004 - 2021 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
8 # More information can be found in the files COPYING and README.
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; version 2 of the License. A copy of the
13 # GNU General Public License can be found in the file COPYING.
14 # --- T2-COPYRIGHT-NOTE-END ---
17 local x="$1" y z; shift
20 local ver=`$y -dumpversion 2> /dev/null`
21 [ $? != 0 ] && continue
22 [ "$x" != "$p" ] && z="$x,$p" || z="$x"
33 gcc_build_wrapper CPP CPP ${arch_target}-cpp
34 gcc_build_wrapper CC GCC ${arch_target}-cc ${arch_target}-gcc
35 gcc_build_wrapper CXX GCC ${arch_target}-c++ ${arch_target}-g++
36 gcc_build_wrapper KCC GCC ${arch_target}-kcc
38 if atstage native || [ "$SDECFG_USE_CROSSCC" = 0 ]; then
39 gcc_build_wrapper CC GCC cc gcc
40 gcc_build_wrapper CXX GCC {c,g}++
41 gcc_build_wrapper F77 GCC f77 gfortran
42 gcc_build_wrapper KCC GCC kcc
43 gcc_build_wrapper CPP CPP cpp
45 # system compiler used in stage 0 - mostly for ccache
46 gcc_build_wrapper SYSCC SYSGCC {,g}cc
47 gcc_build_wrapper SYSCXX SYSGCC {c,g}++
48 gcc_build_wrapper SYSCPP SYSCPP cpp