diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-06-27 11:56:53 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-06-27 11:56:53 +0000 |
commit | 8cb447e0699a8c3588ed33386ee063efa1fb136e (patch) | |
tree | 8e058192f0bbdb72a7b06a46a3d3dd84cfbde505 /hints/hpux.sh | |
parent | 93121600bba1d790ccf4d313750cd86ebd760391 (diff) | |
download | perl-8cb447e0699a8c3588ed33386ee063efa1fb136e.tar.gz |
GCC 3.0 hints for HP-UX.
p4raw-id: //depot/perl@10985
Diffstat (limited to 'hints/hpux.sh')
-rw-r--r-- | hints/hpux.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/hints/hpux.sh b/hints/hpux.sh index da8485f717..b2ffcd5fbf 100644 --- a/hints/hpux.sh +++ b/hints/hpux.sh @@ -72,7 +72,9 @@ case `$cc -v 2>&1`"" in 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 @@ toke_cflags='ccflags="$ccflags -DARG_ZERO_IS_SCRIPT"' ### 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 |