From eb9ee3dc93112029ee3de6fd047d54576a1f1a1f Mon Sep 17 00:00:00 2001 From: "H.Merijn Brand" Date: Mon, 27 Aug 2001 18:25:51 +0200 Subject: [PATCH] GNU ld parses arguments different Message-Id: <20010827162254.2EA6.H.M.BRAND@hccnet.nl> p4raw-id: //depot/perl@11757 --- hints/hpux.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hints/hpux.sh b/hints/hpux.sh index 6b93d80..c3c4c41 100644 --- a/hints/hpux.sh +++ b/hints/hpux.sh @@ -69,11 +69,11 @@ case `$cc -v 2>&1`"" in fi case "`getconf KERNEL_BITS 2>/dev/null`" in *64*) + echo "main(){}">try.c case "$gccversion" in 3*) ccflags="$ccflags -mpa-risc-2-0" ;; - *) echo "main(){}">try.c - # gcc with gas will not accept +DA2.0 + *) # 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 @@ -98,6 +98,7 @@ case `$cc -v 2>&1`"" in esac ;; esac + rm -f try.c ;; esac ;; @@ -125,7 +126,7 @@ toke_cflags='ccflags="$ccflags -DARG_ZERO_IS_SCRIPT"' 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 <&4 @@ -455,4 +456,3 @@ EOCBU # fpclassify() is a macro, the library call is Fpclassify d_fpclassify='define' - -- 2.7.4