This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/25460] -pthread should have priority over -nostdlib
- From: "Ralf dot Wildenhues at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Dec 2005 00:53:49 -0000
- Subject: [Bug other/25460] -pthread should have priority over -nostdlib
- References: <bug-25460-9844@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from Ralf dot Wildenhues at gmx dot de 2005-12-18 00:53 -------
For the casual reader of the documentation, the precedence of this statement
over
| `-pthread'
| Adds support for multithreading with the "pthreads" library. This
| option sets flags for both the preprocessor and linker.
or even the fact that the latter will add a library, are not obvious. It would
be nice if the documentation could be more definite on both of these points.
BTW, I believe libtool does the -nostdlib stuff because, at least in the past,
not using it could cause situations where later libstdc++ would not be found
automatically. I think at least for dlopen'ed modules depending on C++
libraries this is still the case (completely untested).
Cheers,
Ralf
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460