using assert (__eprintf) in shared libraries

Martin v. Loewis
Fri Dec 31 20:54:00 GMT 1999

> But I'm not sure where the real problem lies -- should there be a shared
> libgcc? Are the builds for such programs at fault? 

I would think the latter is the case. libGL should link with libgcc,
but doesn't. Making libgcc shared is being discussed, but it would not
really fix your problem (just work around it, provided libgcc happens
to be loaded anyway).

> And what the best way to fix? 

If you can arrange for it, have the libGL makefiles changed to link
using "gcc -shared", instead of "ld -shared".

If my analysis is totally off the real problem, please let me know.


More information about the Gcc-bugs mailing list