From: Jarkko Hietaniemi Date: Sun, 5 Aug 2001 13:56:46 +0000 (+0000) Subject: Some Tru64 C compilers have C++ components that confuse X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4de7e3a28691dec1434bfa3ef7e6568c966fecd5;p=p5sagit%2Fp5-mst-13.2.git Some Tru64 C compilers have C++ components that confuse the ccversion parsing. p4raw-id: //depot/perl@11580 --- diff --git a/hints/dec_osf.sh b/hints/dec_osf.sh index 71bc05f..8bf043f 100644 --- a/hints/dec_osf.sh +++ b/hints/dec_osf.sh @@ -100,7 +100,7 @@ EOF fi ;; *) # compile something small: taint.c is fine for this. - ccversion=`cc -V | awk '/(Compaq|DEC) C/ {print $3}'` + ccversion=`cc -V | awk '/(Compaq|DEC) C/ {print $3}' | grep '^V'` # the main point is the '-v' flag of 'cc'. case "`cc -v -I. -c taint.c -o taint$$.o 2>&1`" in */gemc_cc*) # we have the new DEC GEM CC