diff options
author | Andy Dougherty <doughera@lafayette.edu> | 2008-11-14 08:01:13 -0500 |
---|---|---|
committer | H.Merijn Brand <h.m.brand@xs4all.nl> | 2008-11-14 18:52:30 +0000 |
commit | 7accc71d75225bb6d25ab63eb19f6c9203f47212 (patch) | |
tree | 2b27fee78ab5615f75d53cc3d8ec755d4e1a6ece /hints | |
parent | 9f4b9cd0c4bccfdc024ff1e990b924f2caa16454 (diff) | |
download | perl-7accc71d75225bb6d25ab63eb19f6c9203f47212.tar.gz |
Future-proof hints/linux.sh against Sun's cc -V output.
Message-ID: <Pine.LNX.4.64.0811141300220.6539@fractal.phys.lafayette.edu>
p4raw-id: //depot/perl@34835
Diffstat (limited to 'hints')
-rw-r--r-- | hints/linux.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/hints/linux.sh b/hints/linux.sh index a240f9a458..c88f157eaa 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -102,7 +102,11 @@ case "`${cc:-cc} -V 2>&1`" in '') optimize='-O3' ;; esac ;; -*"Sun C"*) +*" Sun "*"C"*) + # Sun's C compiler, which might have a 'tag' name between + # 'Sun' and the 'C': Examples: + # cc: Sun C 5.9 Linux_i386 Patch 124871-01 2007/07/31 + # cc: Sun Ceres C 5.10 Linux_i386 2008/07/10 test "$optimize" || optimize='-xO2' cccdlflags='-KPIC' lddlflags='-G -Bdynamic' |