Change 11019 by jhi@alpha on 2001/06/29 12:05:10
HP-UX needs gccversion sooner, from Merijn Brand.
Affected files ...
... //depot/perl/hints/hpux.sh#71 edit
Differences ...
==== //depot/perl/hints/hpux.sh#71 (text) ====
Index: perl/hints/hpux.sh
--- perl/hints/hpux.sh.~1~ Fri Jun 29 06:15:05 2001
+++ perl/hints/hpux.sh Fri Jun 29 06:15:05 2001
@@ -63,18 +63,25 @@
case `$cc -v 2>&1`"" in
*gcc*) ccisgcc="$define"
ccflags="$cc_cppflags"
+ if [ "X$gccversion" = "X" ]; then
+ # Done too late in Configure if hinted
+ gccversion=`$cc --version`
+ fi
case "`getconf KERNEL_BITS 2>/dev/null`" in
*64*)
- echo "main(){}">try.c
- # gcc with gas will not accept +DA2.0
- case "`$cc -c -Wa,+DA2.0 try.c 2>&1`" in
- *"+DA2.0"*) # gas
- gnu_as=yes
+ case "$gccversion" in
+ 3*) ccflags="$ccflags -mpa-risc-2-0"
;;
- *) # HPas
- case "$gccversion" in
- [12]*) ccflags="$ccflags -Wa,+DA2.0" ;;
- esac
+ *) echo "main(){}">try.c
+ # gcc with gas will not accept +DA2.0
+ case "`$cc -c -Wa,+DA2.0 try.c 2>&1`" in
+ *"+DA2.0"*) # gas
+ gnu_as=yes
+ ;;
+ *) # HPas
+ ccflags="$ccflags -Wa,+DA2.0"
+ ;;
+ esac
;;
esac
# gcc with gld will not accept +vnocompatwarnings
@@ -189,8 +196,11 @@
# anyway. Expect auto-detection of 64-bit enabled gcc on
# HP-UX soon, including a user-friendly exit
case $gcc_64native in
- no) ccflags="$ccflags -mlp64"
- ldflags="$ldflags -Wl,+DD64"
+ no) case "$gccversion" in
+ [12]*) ccflags="$ccflags -mlp64"
+ ldflags="$ldflags -Wl,+DD64"
+ ;;
+ esac
;;
esac
;;
End of Patch.