summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-11-27 15:24:12 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-11-27 15:24:12 +0000
commit0fb2d8c60a5be6beaf31066f226ff3cb7e857949 (patch)
tree436615f490990f1a597004621693600af176c5fa /hints
parentf36484b00ee361eaebe87327215b5a06d9950de5 (diff)
downloadperl-0fb2d8c60a5be6beaf31066f226ff3cb7e857949.tar.gz
Protect against accumulating -options -options -options.
p4raw-id: //depot/perl@13322
Diffstat (limited to 'hints')
-rw-r--r--hints/hpux.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/hints/hpux.sh b/hints/hpux.sh
index c3c4c41e11..c99a25caf4 100644
--- a/hints/hpux.sh
+++ b/hints/hpux.sh
@@ -104,7 +104,10 @@ case `$cc -v 2>&1`"" in
;;
*) 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 @@ case "$uselargefiles" in
# 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.