Re: [PATCH] gcc-3.0 warnings on HP-UX
H.Merijn Brand [Wed, 27 Jun 2001 18:40:04 +0000 (20:40 +0200)]
Message-Id: <20010627182601.7261.H.M.BRAND@hccnet.nl>

p4raw-id: //depot/perl@10991

hints/hpux.sh

index b2ffcd5..21ad30c 100644 (file)
@@ -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
                    ;;