From: Jarkko Hietaniemi Date: Thu, 3 Aug 2006 09:04:45 +0000 (+0300) Subject: more g++ in Tru64 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=89a3a25144bc97d46d0d41909341c587a8b6c2cc;p=p5sagit%2Fp5-mst-13.2.git more g++ in Tru64 Message-ID: <44D191FD.9030902@iki.fi> p4raw-id: //depot/perl@28654 --- diff --git a/hints/dec_osf.sh b/hints/dec_osf.sh index a5c1aad..92cb1c3 100644 --- a/hints/dec_osf.sh +++ b/hints/dec_osf.sh @@ -161,9 +161,9 @@ esac # Be nauseatingly ANSI ccflags="$ccflags $_ccflags_strict_ansi" -# g++ needs -D_XOPEN_SOURCE -D_OSF_SOURCE to get much use of . +# g++ needs -D_XOPEN_SOURCE -D_OSF_SOURCE -D_AES_SOURCE -D_BSD to get much use of . case "$cc" in -*g++*) ccflags="$ccflags -D_XOPEN_SOURCE -D_OSF_SOURCE" ;; +*g++*) ccflags="$ccflags -D_XOPEN_SOURCE -D_OSF_SOURCE -D_AES_SOURCE -D_BSD" ;; esac # for gcc the Configure knows about the -fpic: @@ -375,7 +375,7 @@ $define|true|[yY]*) extern int foo; EOF $cc -c pthread.c 2> pthread.err - if grep -q "unrecognized compiler" pthread.err; then + if egrep -q "unrecognized compiler|syntax error" pthread.err; then cat >&4 <