[Compilercache-general] suggestion: add more compiler names
Brought to you by:
erikyyy
From: Jochen V. <jv...@we...> - 2001-10-17 18:53:50
|
Hi, in order to install gcc versions 2.9x and 3.x in parallel some systems install the compilers under names like gcc-2.95 and gcc-3.0. To support explicit choice of the compiler I suggest the following patch. == patch starts at next line =============================== --- compilercache~ Mon Sep 24 18:07:58 2001 +++ compilercache Wed Oct 17 20:43:23 2001 @@ -63,7 +63,9 @@ # determine compiler type COMP="$(basename "$0")" -if ! ( [ "$COMP" = gcc ] || [ "$COMP" = cc ] || [ "$COMP" = g++ ] || [ "$COMP" = c++ ] ); then +if ! [ "$COMP" = cc -o "$COMP" = c++ \ + -o "$COMP" = gcc -o "$COMP" = gcc-2.95 -o "$COMP" = gcc-3.0 \ + -o "$COMP" = g++ -o "$COMP" = g++-2.95 -o "$COMP" = g++-3.0 ]; then printf "unsupported compiler type\n" 1>&2 exit 1 fi == patch ends at previous line ============================= Jochen -- Omm (0)-(0) http://www.mathematik.uni-kl.de/~wwwstoch/voss/privat.html |