develooper Front page | perl.perl5.porters | Postings from August 2001

GNU ld parses arguments different

Thread Next
From:
H . Merijn Brand
Date:
August 27, 2001 07:32
Subject:
GNU ld parses arguments different
Message ID:
20010827162254.2EA6.H.M.BRAND@hccnet.nl
Newer versions of GNU ld parse different, which needs an update to hpux.sh

--- /i2/pro/3gl/CPAN/perl-current/hints/hpux.sh	Thu Aug  9 16:24:21 2001
+++ /l1/pro/3gl/CPAN/perl-current/hints/hpux.sh	Mon Aug 27 16:24:27 2001
@@ -69,11 +69,11 @@
 		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 @@
                                esac
 			    ;;
 			esac
+		    rm -f try.c
 		    ;;
 		esac
 	    ;;
@@ -125,7 +126,7 @@
     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
@@ -455,4 +456,3 @@
 
 # fpclassify() is a macro, the library call is Fpclassify
 d_fpclassify='define'
-

-- 
H.Merijn Brand    Amsterdam Perl Mongers (http://www.amsterdam.pm.org/)
using perl-5.6.1, 5.7.1 & 628 on HP-UX 10.20 & 11.00, AIX 4.2, AIX 4.3,
  WinNT 4, Win2K pro & WinCE 2.11.  Smoking perl CORE: smokers@perl.org
http://archives.develooper.com/daily-build@perl.org/   perl-qa@perl.org
send smoke reports to: smokers-reports@perl.org, QA: http://qa.perl.org


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About