[ping2] Re: [ping] Re: [patch] PR40134, use a linker script on arm-linux to link with -lgcc_s -lgcc
Paolo Carlini
paolo.carlini@oracle.com
Mon Nov 16 22:47:00 GMT 2009
Ralf Wildenhues wrote:
> What would you suggest as the algorithm to fix it in libtool?
> Mind you, I've probably forgotten parts of this, so please bear
> with me:
>
> Should libtool always reorder -lgcc_s before -lgcc if it sees
> (or is to emit) both? On all systems? If not, on which?
> Which of the two should it reorder, and where, if the two do
> not occur successively? What if another library dependency
> drags in one but not the other, and we already have seen one
> or both?
>
> FWIW, I never saw a workable approach fixing libtool only,
> nor understood how libtool could be fixed consistently.
>
If you are confident that *all* the linux targets at the moment are
fine, you can as well hardcode in the library configure that knowledge
and skip running the configure test for those. However, if you want to
put in place the looser configure check, you must be 100% sure that it
also works correctly on anything != linux, and that means, per Joseph'
comments, making sure those generic compiler bits about linking the
static libgcc are properly implemented. Either of those is fine with me.
Paolo
More information about the Java-patches
mailing list