[patch] Default to --enable-libstdcxx-time=auto
Rainer Orth
ro@CeBiTec.Uni-Bielefeld.DE
Fri May 24 13:35:00 GMT 2013
Jakub Jelinek <jakub@redhat.com> writes:
>> It occured to me that there might be a far less intrusive option to still
>> allow a Solaris backport: instead of going the libstdc++.spec route
>> (which I still think is the correct way forward), statically handle -lrt
>> addition in g++spec.c, controlled by a macro defined only in config/sol2.h.
>>
>> Such a patch could be added to mainline and 4.8 branch now, and mainline
>> later changed to use libstdc++.spec instead.
>
> I think a switch from not linking libstdc++ against -lrt to linking against
> that is quite heavy change for the branch. Do you see why the latest patch
I'm not so sure: to me, that's just an implementation detail.
> I've posted today wouldn't work well on Solaris?
It should work on the 4.8 branch (I'll include it in my bootstraps this
weekend), but on mainline the failures due to missing nanosleep/-lrt
will remain.
I've just successfully bootstrapped the following patch on
i386-pc-solaris2.10 and x86_64-unknown-linux-gnu. It fixes the
libstdc++ testsuite failures I'd reported before.
Rainer
2013-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
gcc/cp:
* g++spec.c (TIMELIB): Define.
(WITHLIBC, SKIPOPT): Adjust values.
(lang_specific_driver): Add TIME_LIBRARY if not passed explicitly.
gcc:
* config/sol2.h (TIME_LIBRARY): Define.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sol2-g++-lrt.patch
Type: text/x-patch
Size: 3193 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20130524/f01cfe4a/attachment.bin>
-------------- next part --------------
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
More information about the Libstdc++
mailing list