>>>>> "Jakub" == Jakub Jelinek <[EMAIL PROTECTED]> writes:
>> How do you detect threading without making these calls to libpthreads.so?
Jakub> Weak symbols.
Jakub> extern pthread_t pthread_self (void) __attribute__ ((weak));
Jakub> (resp. #pragma weak pthread_self).
Jakub> Then if (&pthread_self) { application was linked against -lpthread } else { not
threaded }
Jakub> Note all calls to pthread library has to be weak.
Hmm, if all the references to libpthread are weak, what will pull
libpthread in ?
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel