[patch] -dynamic-linker autodetection broken with biarch gcc

Nick Clifton nickc@redhat.com
Tue Jul 19 11:10:00 GMT 2005


Hi Paul,

> Conveniently gcc --help --verbose invokes the linker to obtain a list of 
> commandline options, so we can use this to obtain the value instead.
> 
> Tested on i686-linux x86_64-linux and powerpc-linux.
> Ok?

> 2005-07-14  Paul Brook  <paul@codesourcery.com>
> 
> 	* configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose
> 	to determine dynamic linker name.

Approved - please apply, but...

I think that it would be nicer if this logic were separated out of the 
HOSTING_CRT0 definition and put into its own variable which could then 
just be evaluated via the back-tick operator.  The reason being that you 
could then spread the definition over several lines, add some helpful 
comments and generally make it easier to read and understand.  What do 
you think ?

Cheers
   Nick



More information about the Binutils mailing list