use gcc -### in ld tests

Geoff Keating geoffk@geoffk.org
Tue May 6 19:53:00 GMT 2003


Alan Modra <amodra@bigpond.net.au> writes:

> Some of the ld elfweak tests fail for powerpc because ld is linking
> in the wrong crt* files for use in a shared lib.  This is an attempt
> to fix the problem by using gcc -###.  Would one of the testsuite
> gurus like to review it for me, please?
> 
> 	* lib/ld-lib.exp (default_ld_link): Use "gcc -###" to choose
> 	correct crt* and libs.

Wouldn't it be better to use 'gcc -print-file-name' and companions?

-- 
- Geoffrey Keating <geoffk@geoffk.org>



More information about the Binutils mailing list