This is the mail archive of the
mailing list for the libstdc++ project.
Re: [patch] Default to --enable-libstdcxx-time=auto
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Jonathan Wakely <jwakely dot gcc at gmail dot com>, Benjamin Kosnik <bkoz at redhat dot com>, Paolo Carlini <paolo dot carlini at oracle dot com>, libstdc++ <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 24 May 2013 11:00:26 +0200
- Subject: Re: [patch] Default to --enable-libstdcxx-time=auto
- References: <20130523102827 dot GV1377 at tucnak dot redhat dot com> <CAH6eHdStnqrmWiWBioQLe53VCjMN-AC_56RW+Xnm=z0=pEDtxQ at mail dot gmail dot com> <20130523140218 dot GW1377 at tucnak dot redhat dot com> <20130523162611 dot GA1377 at tucnak dot redhat dot com> <yddbo81whlf dot fsf at CeBiTec dot Uni-Bielefeld dot DE> <20130523205022 dot GF1377 at tucnak dot redhat dot com> <ydd7gipwh3a dot fsf at CeBiTec dot Uni-Bielefeld dot DE> <20130523210611 dot GH1377 at tucnak dot redhat dot com> <ydd38tdwgis dot fsf at CeBiTec dot Uni-Bielefeld dot DE> <yddy5b5uzuq dot fsf at CeBiTec dot Uni-Bielefeld dot DE> <20130524075705 dot GK1377 at tucnak dot redhat dot com>
Jakub Jelinek <email@example.com> writes:
> On Thu, May 23, 2013 at 11:54:05PM +0200, Rainer Orth wrote:
>> > Agreed, that seems the best course of action if that's an option.
>> I just remembered that we aren't there yet even on mainline:
>> * This snippet
>> is necessary to avoid bootstrap failure on Solaris 9.
>> * We'll need to link every C++ program with -lrt on Solaris, as
>> mentioned in the same message. I suppose the best way to do this is
>> along the lines of libgfortran.spec, rather than duplicate the
>> necessary configury between g++ and libstdc++. This might prove
>> pretty invasive for the testsuite, though, and delay the 4.8.1 release
>> quite a bit.
> Ugh, that makes =auto pretty much unbackportable, but it seems Solaris is
> the only problematic OS here. The goal of
> already in 4.8.1 was to allow Linux users (and with partial backport of
> =auto not including Solaris perhaps also FreeBSD/NetBSD/OpenBSD) to let
> users that get C++ core language feature completeness also use this
> (Jonathan/Benjamin, is that right?).
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.
Rainer Orth, Center for Biotechnology, Bielefeld University