Re: -D_REENTRANT



Hi,

> > > gcc: -pthread option
> > > Sun Forte: -mt option
> > > DEC C/CXX:
> > > 	- dce threads: use -threads option
> > > 	- posix (d7) threads: use -pthread option
> > > IBM xlc/xlC family
> > > 	- no threads: use xlc or xlC compiler
> > > 	- dce threads: use xlc_r4 or xlC_r4
> > > 	- posix (d7) threads: use xlc_r or / xlC_r
> > 
> > So how do you compile thread safe libraries there (not link), which can
> > be used single and multithreaded?
> with the options -pthread/-mt or xlc_r for the four compiler above.
> no -Dsomething no -lsomelib

So can you come up with a patch to GLib configure.in? The relevant parts
are in lines 1118-1157. As you see there we already specialcase for
*-aix-* (using -pthread or -mthread there) *-freebsd-*, *-sysv5uw7* and 
*-dg-dgux*.

> mixing DCE and not DCE code can cause strange results (DCE changes semantic of
> many system calls)

What do you mean bu DCE here?

Bye,
Sebastian
-- 
Sebastian Wilhelmi
mailto:wilhelmi ira uka de
http://goethe.ira.uka.de/~wilhelmi





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]