From: Jarkko Hietaniemi Date: Mon, 31 Jul 2006 23:44:55 +0000 (+0300) Subject: (back) towards g++ compilation (in Tru64, and elsewhere) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ebbde8c5834d0c479e4dadc7a405c3590c51f880;p=p5sagit%2Fp5-mst-13.2.git (back) towards g++ compilation (in Tru64, and elsewhere) Message-ID: <44CE6BC7.8060805@iki.fi> Just the hints/dec_osf.sh changes from this set of patches. p4raw-id: //depot/perl@28633 --- diff --git a/hints/dec_osf.sh b/hints/dec_osf.sh index a4155bd..a5c1aad 100644 --- a/hints/dec_osf.sh +++ b/hints/dec_osf.sh @@ -161,6 +161,11 @@ esac # Be nauseatingly ANSI ccflags="$ccflags $_ccflags_strict_ansi" +# g++ needs -D_XOPEN_SOURCE -D_OSF_SOURCE to get much use of . +case "$cc" in +*g++*) ccflags="$ccflags -D_XOPEN_SOURCE -D_OSF_SOURCE" ;; +esac + # for gcc the Configure knows about the -fpic: # position-independent code for dynamic loading @@ -193,6 +198,7 @@ esac case "$isgcc" in gcc) # gcc 3.2.1 wants a lot of memory for -O3'ing toke.c cat >try.c < #include int main ()