[PATCH] Avoid -lm and -lpthread in libjava on darwin

Ralf Wildenhues Ralf.Wildenhues@gmx.de
Thu Aug 12 21:34:00 GMT 2010


* Andrew Pinski wrote on Thu, Aug 12, 2010 at 08:23:13PM CEST:
> On Thu, Aug 12, 2010 at 11:20 AM, Richard Henderson <rth@redhat.com> wrote:
> > Is this patch necessary with the remove-outfile patch in place?
> 
> Yes because libtool calls ld directly for libjava.  I wish it did not
> but it does.

* Jack Howarth wrote on Thu, Aug 12, 2010 at 08:24:30PM CEST:
> The remove-outfile patch is necessary to make sure that the gcc
> compilers don't shift libSystem forward in the linkage and
> disrupt the logic behind libgcc_ext when -ldl, -lm or -lpthread
> is passed to the compiler. The libjava patch covers the hardcoding
> of -lpthread and -lm into the linker flags that are passed via
> libtool directly to the linker.

So do I understand correctly that this ought to be fixed in libtool?
Is the requirement to have libSystem last one that is specific to GCC
or common to all software built with GCC?

Thanks,
Ralf



More information about the Gcc-patches mailing list