This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/18788] "-pthreads" option with "-shared" does not cause libpthread.so to be linked in.
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Dec 2004 11:04:12 -0000
- Subject: [Bug target/18788] "-pthreads" option with "-shared" does not cause libpthread.so to be linked in.
- References: <20041202161921.18788.paulg@chiark.greenend.org.uk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2004-12-21 11:04 -------
Confirmed, the SPEC string in config/sol2.h is very explicit:
#define LIB_SPEC \
"%{compat-bsd:-lucb -lsocket -lnsl -lelf -laio} \
%{!shared:\
%{!symbolic:\
%{pthreads:-lpthread} \
%{!pthreads:%{threads:-lthread}} \
%{p|pg:-ldl} -lc}}"
I wonder why it was written that way...
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |ebotcazou at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-12-21 11:04:10
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18788