summaryrefslogtreecommitdiff
path: root/hints
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
commitfb2bd2e675b8271c72f403ba68209cb7d80e89c5 (patch)
tree4f18ecb4c7b9523815cb9802799fab152d894128 /hints
parenta3fc850b7d7a1247a74e095d6b633d5940fa092a (diff)
downloadperl-fb2bd2e675b8271c72f403ba68209cb7d80e89c5.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')
-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
;;