This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: A library interface patch for egcs
- To: hjl at lucon dot org, law at cygnus dot com
- Subject: Re: A library interface patch for egcs
- From: Manfred Hollstein <manfred at s-direktnet dot de>
- Date: Sun, 28 Jun 1998 18:21:52 +0200 (MEST)
- Cc: egcs-patches at cygnus dot com, libc-hacker at cygnus dot com
- References: <m0yq7si-000265C@ocean.lucon.org>
- Reply-To: manfred at s-direktnet dot de, Manfred dot Hollstein at ks dot sel dot alcatel dot de
On Sat, 27 June 1998, 20:11:56, hjl@lucon.org wrote:
> Hi,
>
> Here is a patch for egcs to encode the library interface, ABI/API,
> in the library name.
>
> The problem with the current scheme is on a given machine, we may have
> multiple C libraries and multiple C++ compilers. As the result, we
> cannot have one single libstdc++ to support all the combinations. When
> we use the same libstdc++ to compile code with different C++ compilers,
> the resulting binary may not work if the libstdc++ is not compatible
> with all C++ compilers. With the shared libstdc++, installing a new
> one may break the existing C++ binaries on the system if they were
> compiled against a shared libstdc++ with a different ABI. They happen
> quite often on Linux machines since there are libc 5, glibc 2.0,
> glibc 2.1, gcc 2.7.2.3, gcc 2.8.1, egcs 1.0.3 and egcs 1.1.
[patch and rationale deleted]
I really like this patch. I just tried it on Linux and there it works
flawlessly, though I think we need to add similar behaviour for other
systems like Solaris, too!
Jeff, I believe we should give it a try (tomorrow I'll test it on my
other systems and send probably additional stuff).
Thanks, H.J.
manfred