[Bug target/18788] "-pthreads" option with "-shared" does not cause libpthread.so to be linked in.
ebotcazou at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Dec 21 11:04:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list