Possible Showstopper

Wolfram Gloger wmglo@dent.med.uni-muenchen.de
Fri Dec 5 04:21:00 GMT 1997


> 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



More information about the Gcc mailing list