summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorH.Merijn Brand <h.m.brand@xs4all.nl>2005-05-30 11:07:45 +0000
committerH.Merijn Brand <h.m.brand@xs4all.nl>2005-05-30 11:07:45 +0000
commitb951dd56557958e31c158a64dc318a83e01f429b (patch)
treeb9880002462d085f315bc87f870501ae94ecb84c /hints
parent172d2248700ecce3dbadd043288b2d7c8151dc4b (diff)
downloadperl-b951dd56557958e31c158a64dc318a83e01f429b.tar.gz
gcc hints were not yet applied to gcc-4.x
Now they are p4raw-id: //depot/perl@24630
Diffstat (limited to 'hints')
-rw-r--r--hints/hpux.sh23
1 files changed, 12 insertions, 11 deletions
diff --git a/hints/hpux.sh b/hints/hpux.sh
index 7a95841bf2..3ce1d85805 100644
--- a/hints/hpux.sh
+++ b/hints/hpux.sh
@@ -84,7 +84,7 @@ case `$cc -v 2>&1`"" in
[012]*) # HP-UX and gcc-2.* break UINT32_MAX :-(
ccflags="$ccflags -DUINT32_MAX_BROKEN"
;;
- 3*) # GCC (both 32bit and 64bit) will define __STDC_EXT__
+ [34]*) # GCC (both 32bit and 64bit) will define __STDC_EXT__
# by default when using GCC 3.0 and newer versions of
# the compiler.
cppflags="$cc_cppflags"
@@ -94,7 +94,7 @@ case `$cc -v 2>&1`"" in
*64*)
echo "main(){}">try.c
case "$gccversion" in
- 3*)
+ [34]*)
case "$archname" in
PA-RISC*)
case "$ccflags" in
@@ -269,15 +269,16 @@ EOM
# HP-UX soon, including a user-friendly exit
case $gcc_64native in
no) case "$gccversion" in
- [123]*) ccflags="$ccflags -mlp64"
- case "$archname" in
- PA-RISC*)
- ldflags="$ldflags -Wl,+DD64"
- ;;
- IA64*)
- ldflags="$ldflags -mlp64"
- ;;
- esac
+ [1234]*)
+ ccflags="$ccflags -mlp64"
+ case "$archname" in
+ PA-RISC*)
+ ldflags="$ldflags -Wl,+DD64"
+ ;;
+ IA64*)
+ ldflags="$ldflags -mlp64"
+ ;;
+ esac
;;
esac
;;