This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: using assert (__eprintf) in shared libraries
- To: rocky at panix dot com
- Subject: Re: using assert (__eprintf) in shared libraries
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Mon, 27 Dec 1999 00:01:08 +0100
- CC: egcs-bugs at egcs dot cygnus dot com
- References: <199912251954.OAA11347@panix3.panix.com>
> 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.
Regards,
Martin