This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Possible Showstopper
- To: sumner at collegium dot adsl dot net dot cmu dot edu
- Subject: Re: Possible Showstopper
- From: Wolfram Gloger <wmglo at dent dot med dot uni-muenchen dot de>
- Date: 5 Dec 1997 11:18:50 -0000
- CC: egcs at cygnus dot com
> Andreas Jaeger (aj@arthur.rhein-neckar.de) wrote:
> > +# pragma weak _pthread_cleanup_push_defer
> > +# pragma weak _pthread_cleanup_pop_restore
>
> Applying this patch does not fix things here on Red Hat 5.0. I still
> need to link all C++ programs against the pthreads library.
Yes, this is what I found as well. A solution is to insert into
libc-lock.h
asm(".weakext _pthread_cleanup_push_defer");
asm(".weakext _pthread_cleanup_pop_restore");
instead of the `#pragma weak's. This is rather ugly, but works for
me.
Regards,
Wolfram.
--
`Surf the sea, not double-u three...'
wmglo@dent.med.uni-muenchen.de