develooper Front page | perl.perl5.porters | Postings from January 2005

[PATCH] gcc and ld in Configure

Thread Next
Robin Barker
January 5, 2005 04:05
[PATCH] gcc and ld in Configure
Message ID:
To compile gcc-3.4.3 is used -use-gnu-ld,
this then put 'Configured ... -use-gnu-ld' in the output of gcc -v that
was picked up by the attempts to find the path to GNU ld in Configure.

This patch fixes this in two ways:
	replaces 'grep ld' by 'grep /ld' so '-use-gnu-ld' is ignored
	removes '-v' (leaving '-Wl,-v') so the 'Configured' line isn't reported

I have also removed a redundant 'grep ld' from the following command.


diff -ur /opt/src/perl/perl-5.8.6/hints/ ./hints/
--- /opt/src/perl/perl-5.8.6/hints/	Fri Jun 25 16:45:24 2004
+++ ./hints/	Wed Jan  5 09:39:18 2005
@@ -257,9 +257,9 @@
 	    # (This may all depend on local configurations too.)
 	    # Recompute verbose with -Wl,-v to find GNU ld if present
-	    verbose=`${cc:-cc} -v -Wl,-v -o try try.c 2>&1 | grep ld 2>&1`
+	    verbose=`${cc:-cc} -Wl,-v -o try try.c 2>&1 | grep /ld 2>&1`
-	    myld=`echo $verbose| grep ld | awk '/\/ld/ {print $1}'`
+	    myld=`echo $verbose | awk '/\/ld/ {print $1}'`
 	    # This assumes that gcc's output will not change, and that
 	    # /full/path/to/ld will be the first word of the output.
 	    # Thus myld is something like /opt/gnu/sparc-sun-solaris2.5/bin/ld

This e-mail and any attachments may contain confidential and/or
privileged material; it is for the intended addressee(s) only.
If you are not a named addressee, you must not use, retain or
disclose such information.

NPL Management Ltd cannot guarantee that the e-mail or any
attachments are free from viruses.

NPL Management Ltd. Registered in England and Wales. No: 2937881
Registered Office: Teddington, Middlesex, United Kingdom TW11 0LW.
Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About