On Sun, 5 Jan 2003, Albert Chin wrote:
> On Sun, Jan 05, 2003 at 01:29:18AM +0000, Pier Fumagalli wrote:
> > Now, gcc _correctly_ links any executable to the correct library libgcc.a
> > automagically (if I call it from the command line), _but_ libtool is stupid,
> > and assumes that when we want to link a library, we can simply call "ld"
> > automatically without caring about what GCC might have to say...
>
> I just looked and it appears that libtool HEAD uses gcc -shared to
> create shared libraries when GCC is the compiler.
Btw, we had a similar issue in Apache 1.3 years ago where
apxs would use ld directly for linking which caused funny
effects. That, too, was resolved by changing the linking
process to use "gcc -shared". The only difference to this
incident is that only Linux was affected.
- Sascha