summaryrefslogtreecommitdiff
path: root/hints/hpux.sh
diff options
context:
space:
mode:
authorH.Merijn Brand <h.m.brand@xs4all.nl>2001-06-27 20:40:04 +0200
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-27 17:04:13 +0000
commit9fecddabb6bed9c4b52a8bae2fa010809d568b0d (patch)
tree4f18ecb4c7b9523815cb9802799fab152d894128 /hints/hpux.sh
parentaf23fe4d694e2dc86e1c1ab453afdcd423752bcb (diff)
downloadperl-9fecddabb6bed9c4b52a8bae2fa010809d568b0d.tar.gz
Re: [PATCH] gcc-3.0 warnings on HP-UX
Message-Id: <20010627182601.7261.H.M.BRAND@hccnet.nl> p4raw-id: //depot/perl@10991
Diffstat (limited to 'hints/hpux.sh')
-rw-r--r--hints/hpux.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/hints/hpux.sh b/hints/hpux.sh
index b2ffcd5fbf..21ad30c024 100644
--- a/hints/hpux.sh
+++ b/hints/hpux.sh
@@ -83,8 +83,12 @@ case `$cc -v 2>&1`"" in
gnu_ld=yes
;;
*) # HPld
- ldflags="$ldflags -Wl,+vnocompatwarnings"
- ccflags="$ccflags -Wl,+vnocompatwarnings"
+ case "$gccversion" in
+ [12]*)
+ ldflags="$ldflags -Wl,+vnocompatwarnings"
+ ccflags="$ccflags -Wl,+vnocompatwarnings"
+ ;;
+ esac
;;
esac
;;