diff options
author | H.Merijn Brand <h.m.brand@xs4all.nl> | 2001-05-08 10:44:02 +0200 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-05-08 16:48:31 +0000 |
commit | 5e2807cc78b51e76c8fb725c98899842105f1d3f (patch) | |
tree | 0f5106f5cccaede8c8789530c4816b3094248ce7 /hints | |
parent | b3b48e3eb8f85caa6afab3dc95ab58c02450700f (diff) | |
download | perl-5e2807cc78b51e76c8fb725c98899842105f1d3f.tar.gz |
Less warnings during configure
Message-Id: <20010508084158.D793.H.M.BRAND@hccnet.nl>
p4raw-id: //depot/perl@10039
Diffstat (limited to 'hints')
-rw-r--r-- | hints/hpux.sh | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/hints/hpux.sh b/hints/hpux.sh index 5254258594..ebb70ead6e 100644 --- a/hints/hpux.sh +++ b/hints/hpux.sh @@ -73,7 +73,7 @@ case "$prefix" in case `$cc -v 2>&1`"" in *gcc*) ccisgcc="$define" - ccflags="$cc_cppflags" + ccflags="$cc_cppflags -Wl,+vnocompatwarnings" case "`getconf KERNEL_BITS 2>/dev/null`" in *64*) ldflags="$ldflags -Wl,+vnocompatwarnings" ccflags="$ccflags -Wl,+vnocompatwarnings -Wa,+DA2.0" @@ -82,12 +82,12 @@ case `$cc -v 2>&1`"" in ;; *) ccisgcc='' ccversion=`which cc | xargs what | awk '/Compiler/{print $2}'` - ccflags="-Ae $cc_cppflags" - # Needed because cpp does only support -Aa (not -Ae) - cpplast='-' - cppminus='-' - cppstdin='cc -E -Aa -D__STDC_EXT__' - cpprun=$cppstdin + ccflags="-Ae $cc_cppflags -Wl,+vnocompatwarnings" + # Needed because cpp does only support -Aa (not -Ae) + cpplast='-' + cppminus='-' + cppstdin='cc -E -Aa -D__STDC_EXT__' + cpprun=$cppstdin case "$d_casti32" in "") d_casti32='undef' ;; esac @@ -185,10 +185,10 @@ case "$ccisgcc" in *O[3456789]*) optimize=`echo "$optimize" | sed -e 's/O[3-9]/O2/'` ;; esac #ld="$cc" - ld="/usr/bin/ld" + ld=/usr/bin/ld cccdlflags='-fPIC' #lddlflags='-shared' - lddlflags='-b +vnocompatwarnings' + lddlflags='-b' case "$optimize" in *-g*-O*|*-O*-g*) # gcc without gas will not accept -g @@ -206,7 +206,7 @@ case "$ccisgcc" in *) # HP's compiler cannot combine -g and -O case "$optimize" in - "") optimize="+O2 +Onolimit" ;; + "") optimize="+O2 +Onolimit" ;; *O[3456789]*) optimize=`echo "$optimize" | sed -e 's/O[3-9]/O2/'` ;; esac ld=/usr/bin/ld |