[BUG] glib's configure should support --with-threads=[posix]
- From: wtc netscape com (Wan-Teh Chang)
- To: gtk-list redhat com
- Subject: [BUG] glib's configure should support --with-threads=[posix]
- Date: Fri, 11 Dec 1998 23:27:15 -0800
Packages: glib-1.1.5 and gtk+-1.1.5
Description:
One can build a thread-safe version of gtk+ by
specifying the --with-threads=posix flag for the
configure script. Since gtk+ depends on glib,
glib also needs to be thread-safe.
For example, glib uses the errno variable. In
a multithreaded program, errno is actually a
function call to get the per-thread error code.
For example, on Digital Unix V4.0D,
/usr/include/sys/errno.h has this:
#ifdef _REENTRANT
#define errno (*_errno())
#else
extern int errno;
#endif /* _REENTRANT */
So glib at least needs to be compiled with
-D_REENTRANT to be thread-safe.
Fix:
Add the --with-threads=[posix] flag to glib's
configure script. You should be able to just
cut and paste the --with-threads stuff from
gtk+'s configure script.
Wan-Teh Chang
wtc@netscape.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]