This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: The library interface again
- To: drepper@cygnus.com, law@cygnus.com
- Subject: Re: The library interface again
- From: Manfred Hollstein <manfred@s-direktnet.de>
- Date: Tue, 28 Jul 1998 08:03:28 +0200 (MET DST)
- Cc: hjl@lucon.org, egcs-patches@cygnus.com, libc-hacker@cygnus.com
- References: <m0z0wyx-00038oC@ocean.lucon.org> <r2iukidetd.fsf@happy.cygnus.com>
- Reply-To: manfred@s-direktnet.de, Manfred.Hollstein@ks.sel.alcatel.de
On nil, 27 July 1998, 17:01:02, drepper@cygnus.com wrote:
> hjl@lucon.org (H.J. Lu) writes:
>
> > Mine is a working solution. For Linux, the libsubdir one is no better
> > than the current one if not worse since it introduces the dependency
> > on libsubdir.
>
> I agree with HJ on this. Jeff, consider making this change since the
> subdir stuff simply will lead to unnecessary trouble since it would
> require permanently updating the ld.so.conf file or hardcoding an
> rpath.
I agree with the dependency on libsubdir, but concerning ld.so.conf,
that's simply not true; it would only force all C++ developers to do
on Linux what's necessary on other systems using shared libs anyway
somehow:
LD_RUN_PATH=`gcc --print-file-name=` g++ ... <your linker args>
should be sufficient.
Jeff, I believe you should give H.J.'s patch a chance and put it into
the release branch; though I've been using my libsubdir solution since
a long time now, I guess his patch would better fit the "normal Linux
user" ;-) and BTW, yes, it does work, I've checked it on Linux and
Solaris so far.
manfred