This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [v3] Link libstdc++.so with -pthread on Tru64 UNIX (PR target/45693)
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: Andreas Schwab <schwab at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Tue, 02 Nov 2010 17:46:49 +0100
- Subject: Re: [v3] Link libstdc++.so with -pthread on Tru64 UNIX (PR target/45693)
- References: <ydd39rq1irs.fsf@manam.CeBiTec.Uni-Bielefeld.DE> <ydd39rj7l4u.fsf@manam.CeBiTec.Uni-Bielefeld.DE> <m362wfpu20.fsf@hase.home>
Andreas Schwab <schwab@redhat.com> writes:
> Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> writes:
>
>> * Cannot use -pthread in OPT_LDFLAGS: libtool swallows that,
>> -Wl,-pthread doesn't work (it's not a linker option), and -Wc,-pthread
>> doesn't work either (seems to be ignored with -shared), so I had to
>> fall back to using -lpthread instead.
>
> Shouldn't that be put in LIBADD?
I see no direct way of doing so. One might use GLIBCXX_LIBS, no idea if
this could safely be done in configure.host.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University