This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [java] RFC/RFA: libgcj_bc.so.1


On Fri, Jul 14, 2006 at 12:04:05PM -0400, Bryce McKinlay wrote:
> Jakub Jelinek wrote:
> >On the other side, if
> >/usr/lib*/libgcj_bc.so.1 is a symlink to
> >libgcj_bc.so.1.0.0 and /usr/lib*/libgcj_bc.so.1.0.0 is a dummy shared
> >library (
> >gcc -shared -O2 -fpic -xc /dev/null -Wl,-soname,libgcj_bc.so.1 -o 
> >libgcj_bc.so.1.0.0 -lgcj
> >), then both libgcj.so.37 and libgcj_bc.so.1 will be in ld.so.conf.
> >  
> Well, we already tried this approach. It doesn't work because if 
> libgcj_bc.so.1 is linked to libgcj.so.37, then the linker adds a 
> DT_NEEDED for libgcj.so.37 to any binaries that are linked with 
> -lgcj_bc. The --no-add-needed linker option is supposed to stop this 
> from happening, but it doesn't work.

Even when libgcj_bc.so (i.e. the static link time dummy lib) doesn't
have DT_NEEDED on libgcj.so.* at all?

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]