Change 10985 by jhi@alpha on 2001/06/27 11:56:53
GCC 3.0 hints for HP-UX.
Affected files ...
... //depot/perl/hints/hpux.sh#69 edit
Differences ...
==== //depot/perl/hints/hpux.sh#69 (text) ====
Index: perl/hints/hpux.sh
--- perl/hints/hpux.sh.~1~ Wed Jun 27 16:00:10 2001
+++ perl/hints/hpux.sh Wed Jun 27 16:00:10 2001
@@ -72,7 +72,9 @@
gnu_as=yes
;;
*) # HPas
- ccflags="$ccflags -Wa,+DA2.0"
+ case "$gccversion" in
+ [12]*) ccflags="$ccflags -Wa,+DA2.0" ;;
+ esac
;;
esac
# gcc with gld will not accept +vnocompatwarnings
@@ -107,12 +109,12 @@
### 64 BITNESS
-# Some gcc versions do native 64 bit long (e.g. 2.9-hppa-000310)
+# Some gcc versions do native 64 bit long (e.g. 2.9-hppa-000310 and gcc-3.0)
# We have to force 64bitness to go search the right libraries
gcc_64native=no
case "$ccisgcc" in
$define|true|[Yy])
- echo 'int main(){long l;printf("%d\n",sizeof(l));}'>try.c
+ echo 'int main(){long l;printf("%d\\n",sizeof(l));}'>try.c
$cc -o try $ccflags $ldflags try.c
if [ "`try`" = "8" ]; then
cat <<EOM >&4
End of Patch.