Enable portable gcc code on hp-ux
H.Merijn Brand [Sun, 14 Apr 2002 16:30:01 +0000 (18:30 +0200)]
From: "H.Merijn Brand" <h.m.brand@hccnet.nl>
Message-Id: <20020414162907.07C4.H.M.BRAND@hccnet.nl>

p4raw-id: //depot/perl@15905

hints/hpux.sh

index 3392c77..043ee79 100644 (file)
@@ -89,7 +89,12 @@ case `$cc -v 2>&1`"" in
                    case "$gccversion" in
                        3*)
                            case "$archname" in
-                               PA-RISC*) ccflags="$ccflags -mpa-risc-2-0" ;;
+                               PA-RISC*)
+                                   case "$ccflags" in
+                                       *-mpa-risc*) ;;
+                                       *) ccflags="$ccflags -mpa-risc-2-0" ;;
+                                       esac
+                                   ;;
                                esac
                            ;;
                        *)  # gcc with gas will not accept +DA2.0