From: H.Merijn Brand Date: Wed, 27 Jun 2001 18:40:04 +0000 (+0200) Subject: Re: [PATCH] gcc-3.0 warnings on HP-UX X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9fecddabb6bed9c4b52a8bae2fa010809d568b0d;p=p5sagit%2Fp5-mst-13.2.git Re: [PATCH] gcc-3.0 warnings on HP-UX Message-Id: <20010627182601.7261.H.M.BRAND@hccnet.nl> p4raw-id: //depot/perl@10991 --- diff --git a/hints/hpux.sh b/hints/hpux.sh index b2ffcd5..21ad30c 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 ;;