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. Matthias