This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [patch] Link the dummy libgcj_bc shared library with --no-as-needed
- From: Andrew Haley <aph at redhat dot com>
- To: Matthias Klose <doko at ubuntu dot com>
- Cc: GCJ-patches <java-patches at gcc dot gnu dot org>
- Date: Wed, 04 Sep 2013 11:20:56 +0100
- Subject: Re: [patch] Link the dummy libgcj_bc shared library with --no-as-needed
- Authentication-results: sourceware.org; auth=none
- References: <52270600 dot 8010008 at ubuntu dot com>
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.