Change 13322 by jhi@alpha on 2001/11/27 15:24:12

        Protect against accumulating -options -options -options.

Affected files ...

.... //depot/perl/hints/hpux.sh#74 edit

Differences ...

==== //depot/perl/hints/hpux.sh#74 (text) ====
Index: perl/hints/hpux.sh
--- perl/hints/hpux.sh.~1~      Tue Nov 27 08:30:05 2001
+++ perl/hints/hpux.sh  Tue Nov 27 08:30:05 2001
@@ -104,7 +104,10 @@
            ;;
     *)      ccisgcc=''
            ccversion=`which cc | xargs what | awk '/Compiler/{print $2}'`
-           ccflags="-Ae $cc_cppflags -Wl,+vnocompatwarnings"
+           case "$ccflags" in
+           "-Ae "*) ;;
+           *) ccflags="-Ae $cc_cppflags -Wl,+vnocompatwarnings" ;;
+           esac
            # Needed because cpp does only support -Aa (not -Ae)
            cpplast='-'
            cppminus='-'
@@ -359,7 +362,10 @@
        # but we cheat for now.  (Keep that in the left margin.)
 ccflags_uselargefiles="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
 
-       ccflags="$ccflags $ccflags_uselargefiles"
+       case "$ccflags" in
+       *" $ccflags_uselargefiles") ;;
+       *) ccflags="$ccflags $ccflags_uselargefiles" ;;
+       esac
 
         if test -z "$ccisgcc" -a -z "$gccversion"; then
            # The strict ANSI mode (-Aa) doesn't like large files.
End of Patch.

Reply via email to