Re: [patch] Link the dummy libgcj_bc shared library with --no-as-needed

Andrew Haley <[email protected]> Wed, 04 Sep 2013 11:20:56 +0100
Newsgroups gmane.comp.gcc.java.patches
Message-ID <[email protected]>
On 09/04/2013 11:05 AM, Matthias Klose wrote:
> When building a compiler which passes --no-as-needed by default to the linker,
> libgcj_bc.so ends up without a DTNEEDED entry for libgcj, because no symbols in
> libgcj are required to resolve symbols in libgcj_bc.  This causes about 500 test
> cases to fail.  Solved by explicitly passing -Wl,--no-as-needed.  Is this ok for
> upstream? It's not needed, but doesn't hurt either.

That doesn't make sense.  If the compiler is passing --no-as-needed by default to the linker,
why do you need to pass it again?

Andrew.