summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2006-08-01 02:44:55 +0300
committerSteve Peters <steve@fisharerojo.org>2006-08-01 00:10:06 +0000
commitebbde8c5834d0c479e4dadc7a405c3590c51f880 (patch)
treeee8623d885b3201ba1af9bd842e5156fc5dfc521 /hints
parent586251be069c5ad776194c01de317f0a5ac37c08 (diff)
downloadperl-ebbde8c5834d0c479e4dadc7a405c3590c51f880.tar.gz
(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
Diffstat (limited to 'hints')
-rw-r--r--hints/dec_osf.sh6
1 files changed, 6 insertions, 0 deletions
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 <unistd.h>.
+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 <<EOF
+#include <stdio.h>
#include <sys/resource.h>
int main ()