This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
-pthread
- From: Stefan Olsson <stefan at noname4us dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 26 Nov 2001 16:17:37 +0100
- Subject: -pthread
- Organization: Noname4us
Hi!
I know that the compiler option -pthread set's all the appropriate flags
for building a MT application.
However we have some libraries that are used by both single and
multithreaded applications and therefore we need to do some ifdef's.
Which flag should we be looking for? Does -pthread set anything else
than __REENTRANT etc
Thanks!
/Stefan
--
The Heineken Uncertainty Principle:
You can never be sure how many beers you had last night.