From: Perl 5 Porters Date: Fri, 5 Jul 1996 04:35:15 +0000 (+0000) Subject: Recognize gcc binaries with version in name X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=180c3c44e996a924c6aa4a9ec05e607cad2c29ff;p=p5sagit%2Fp5-mst-13.2.git Recognize gcc binaries with version in name --- diff --git a/hints/aux.sh b/hints/aux.sh index add0f4d..e0aec23 100644 --- a/hints/aux.sh +++ b/hints/aux.sh @@ -6,7 +6,7 @@ # Fri May 5 10:59:43 EDT 1995 case "$cc" in -gcc) optimize='-O2' +*gcc*) optimize='-O2' ccflags="$ccflags -D_POSIX_SOURCE" echo "Setting hints for GNU CC." ;; diff --git a/hints/irix_4.sh b/hints/irix_4.sh index f934ac7..a5d08e0 100644 --- a/hints/irix_4.sh +++ b/hints/irix_4.sh @@ -7,7 +7,7 @@ d_voidsig=define d_charsprf=undef case "$cc" in -*gcc) ccflags="$ccflags -D_BSD_TYPES" ;; +*gcc*) ccflags="$ccflags -D_BSD_TYPES" ;; *) ccflags="$ccflags -ansiposix -signed" ;; esac diff --git a/hints/irix_5.sh b/hints/irix_5.sh index 5027b15..e4d0347 100644 --- a/hints/irix_5.sh +++ b/hints/irix_5.sh @@ -11,7 +11,7 @@ ld=ld i_time='define' case "$cc" in -*gcc) ccflags="$ccflags -D_BSD_TYPES" ;; +*gcc*) ccflags="$ccflags -D_BSD_TYPES" ;; *) ccflags="$ccflags -D_POSIX_SOURCE -ansiposix -D_BSD_TYPES -Olimit 3000" ;; esac diff --git a/hints/sco.sh b/hints/sco.sh index 307e27e..4cd15e4 100644 --- a/hints/sco.sh +++ b/hints/sco.sh @@ -30,7 +30,7 @@ glibpth=`echo $glibpth | sed -e 's! /usr/lib/386 ! !' -e 's! /lib/386 ! !'` xlibpth='' case "$cc" in -gcc) +*gcc*) ccflags="$ccflags -U M_XENIX" optimize="$optimize -O2" ;;