From ebbde8c5834d0c479e4dadc7a405c3590c51f880 Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Tue, 1 Aug 2006 02:44:55 +0300 Subject: (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 --- hints/dec_osf.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'hints') diff --git a/hints/dec_osf.sh b/hints/dec_osf.sh index a4155bdd19..a5c1aadc44 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 () -- cgit v1.2.1