From: Mart Raudsepp <leio@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] RFC: --as-needed to default LDFLAGS (Was: RFC: Should preserve-libs be enabled by default?)
Date: Sat, 31 May 2008 00:47:44 +0300 [thread overview]
Message-ID: <1212184064.13925.15.camel@localhost> (raw)
In-Reply-To: <20080530223700.12cd7bcd@snowcone>
On R, 2008-05-30 at 22:37 +0100, Ciaran McCreesh wrote:
> On Sat, 31 May 2008 00:31:22 +0300
> Mart Raudsepp <leio@gentoo.org> wrote:
> > On R, 2008-05-30 at 20:20 +0100, Ciaran McCreesh wrote:
> > > On Fri, 30 May 2008 21:13:32 +0200
> > > Luca Barbato <lu_zero@gentoo.org> wrote:
> > > > Talk to the upstream about this, probably getting a satisfying
> > > > solution isn't that difficult.
> > >
> > > The solution is to use --as-needed in the same way that -ffast-math
> > > is used: only with applications specifically designed to support it.
> >
> > You mean everything but paludis?
>
> Paludis is fine with as-needed. But hey, don't let reality get in the
> way of your pathetic attempts at turning everything into Paludis
> bashing.
It happens to be the only package that I know of that couldn't be fixed
to work with --as-needed (fix for others being to actually state linking
with a library whose symbols are directly used). I have not heard of
anything else.
> > Doesn't your grand plan include supporting Prefix and Interix with PE
> > binaries and so on?
>
> I have no particular interest in supporting any platform that can't
> ship a Standard-compliant C++ environment.
That doesn't mean Gentoo progress, in maintainability of a running
system through the ease of ABI breaks meaning magnitudes of less
recompilations, should be inhibited.
> > I know projects that need to work around static initialization not
> > being reliable - they only happen to have done that for other reasons
> > (such as Windows PE format, iirc) years before --as-needed was
> > implemented for binutils.
> > Standards is one thing - reality is something quite different.
> > The reality is that everything designed to work everywhere is just
> > mighty happy with --as-needed and lots of benefits to gain from it.
>
> And twenty years ago C++ had to work around linkers that only supported
> eight character symbol names. Reality moves forward, except in
> situations like these where people try to rice it backwards.
Maybe you'd like to tell that to the authors of the platforms that don't
support this extreme corner case, but are amongst the platforms that we
do somewhat support in Gentoo?
The story that matters here is, that a C++ corner case that does not
work on 0.01% of packages with --as-needed and breaks on non-ELF
platforms, should not cause good things for our users to be shot down.
99.9% packages in the tree work just great with --as-needed with many
benefits, including ABI break pain reduction (and less importantly
memory savings from dirty library private memory pages), so given that
percentage the default should be what makes things better for users with
exceptions for those tiny percentage of packages that fall into the
corner case (that break on more exotic platforms anyway and arguably
should be fixed).
Portage developers - is there anything we should do to get --as-needed
to make.conf.example and other places, beyond fixing the known bugs on
the appropriate bug tracker?
--
Mart Raudsepp
Gentoo Developer
Mail: leio@gentoo.org
Weblog: http://planet.gentoo.org/developers/leio
--
gentoo-dev@lists.gentoo.org mailing list
next prev parent reply other threads:[~2008-05-30 21:48 UTC|newest]
Thread overview: 76+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-28 23:13 [gentoo-dev] RFC: Should preserve-libs be enabled by default? Marius Mauch
2008-05-29 4:48 ` [gentoo-dev] " Ryan Hill
2008-05-29 5:14 ` [gentoo-dev] " Donnie Berkholz
2008-05-29 6:54 ` Rémi Cardona
2008-05-29 7:55 ` Fabian Groffen
2008-05-29 14:40 ` Arfrever Frehtes Taifersar Arahesis
2008-05-29 8:28 ` Mike Auty
2008-05-29 17:30 ` Marius Mauch
2008-05-29 9:02 ` [gentoo-dev] " Diego 'Flameeyes' Pettenò
2008-05-30 5:02 ` Marius Mauch
2008-05-30 6:55 ` Peter Volkov
2008-05-30 7:16 ` Mike Auty
2008-05-30 12:09 ` Santiago M. Mola
2008-05-30 12:22 ` Diego 'Flameeyes' Pettenò
2008-05-30 15:57 ` David Leverton
2008-05-30 16:29 ` Diego 'Flameeyes' Pettenò
2008-05-30 16:35 ` Ciaran McCreesh
2008-05-30 16:43 ` David Leverton
2008-05-30 19:13 ` Luca Barbato
2008-05-30 19:20 ` Ciaran McCreesh
2008-05-30 21:31 ` Mart Raudsepp
2008-05-30 21:37 ` Ciaran McCreesh
2008-05-30 21:47 ` Mart Raudsepp [this message]
2008-05-30 21:53 ` [gentoo-dev] RFC: --as-needed to default LDFLAGS (Was: RFC: Should preserve-libs be enabled by default?) Ciaran McCreesh
2008-05-30 22:07 ` Donnie Berkholz
2008-05-30 22:14 ` Ciaran McCreesh
2008-05-30 23:13 ` Luca Barbato
2008-05-30 23:26 ` Ciaran McCreesh
2008-05-30 23:43 ` Brian Harring
2008-05-30 23:50 ` Ciaran McCreesh
2008-05-30 23:54 ` Luca Barbato
2008-05-31 0:02 ` Ciaran McCreesh
2008-05-31 0:17 ` Luca Barbato
2008-05-31 0:30 ` Ciaran McCreesh
2008-05-31 1:03 ` Luca Barbato
2008-05-31 1:17 ` Ciaran McCreesh
2008-05-31 1:43 ` Brian Harring
2008-05-31 1:50 ` Ciaran McCreesh
2008-05-31 2:01 ` Brian Harring
2008-05-31 2:08 ` Ciaran McCreesh
2008-05-31 2:08 ` Nirbheek Chauhan
2008-05-31 2:14 ` Ciaran McCreesh
2008-05-31 2:23 ` Nirbheek Chauhan
2008-05-31 2:33 ` Ciaran McCreesh
2008-05-31 2:58 ` Nirbheek Chauhan
2008-05-31 3:03 ` Ciaran McCreesh
2008-05-31 3:15 ` Nirbheek Chauhan
2008-05-31 3:28 ` Brian Harring
2008-05-31 6:25 ` Peter Volkov
2008-05-31 10:35 ` Luca Barbato
2008-05-31 11:26 ` Alec Warner
2008-05-31 11:41 ` Alexis Ballier
2008-05-31 11:45 ` Marius Mauch
2008-05-31 10:14 ` Luca Barbato
2008-05-31 10:27 ` David Leverton
2008-05-31 2:50 ` Ravi Pinjala
2008-05-31 3:03 ` Ciaran McCreesh
2008-05-31 13:19 ` [gentoo-dev] " Duncan
2008-05-31 19:24 ` [gentoo-dev] Re: RFC: --as-needed to default LDFLAGS Ulrich Mueller
2008-05-31 19:32 ` Mike Auty
2008-05-31 23:57 ` Duncan
2008-06-01 16:44 ` Rémi Cardona
2008-05-31 6:09 ` [gentoo-dev] RFC: --as-needed to default LDFLAGS (Was: RFC: Should preserve-libs be enabled by default?) Michal Kurgan
2008-05-31 1:39 ` Josh Saddler
2008-05-30 23:08 ` Luca Barbato
2008-05-30 23:16 ` Ciaran McCreesh
2008-05-30 23:18 ` Luca Barbato
2008-05-31 6:22 ` Roy Marples
2008-05-31 0:29 ` Marius Mauch
2008-05-30 12:31 ` [gentoo-dev] Re: RFC: Should preserve-libs be enabled by default? Rémi Cardona
2008-05-30 12:39 ` Diego 'Flameeyes' Pettenò
2008-05-30 10:55 ` Ciaran McCreesh
2008-05-30 19:29 ` Luca Barbato
2008-05-30 19:48 ` Ciaran McCreesh
2008-05-30 11:37 ` Diego 'Flameeyes' Pettenò
2008-05-29 14:39 ` [gentoo-dev] " Arfrever Frehtes Taifersar Arahesis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1212184064.13925.15.camel@localhost \
--to=leio@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox