public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
From: Frank Peters <frank.peters@comcast.net>
To: gentoo-amd64@lists.gentoo.org
Subject: Re: [gentoo-amd64]  Re: Please suggest settings and flags in /etc/make.conf?
Date: Fri, 22 Jan 2010 08:39:15 -0500	[thread overview]
Message-ID: <20100122083915.c0dab500.frank.peters@comcast.net> (raw)
In-Reply-To: <pan.2010.01.22.12.49.28@cox.net>

On Fri, 22 Jan 2010 12:49:27 +0000 (UTC)
Duncan <1i5t5.duncan@cox.net> wrote:

> 
> Meanwhile, it's also worth considering LDFLAGS.  Here's mine:
> 
> LDFLAGS="-Wl,-z,now,--as-needed,-O1,--hash-style=gnu,--sort-common"
> 
> --as-needed is the one most folks will be interested in.  There's talk of 
> eventually making this the Gentoo default, as it can DRAMATICALLY reduce 
> the number of reverse dependency breakage of the sort revdep-rebuild 
> fixes.  I'm talking an order of magnitude reduction, having to rebuild 
> maybe 1/10 of the packages that would have to be rebuilt without it.  
> Problems with this one should now be quite rare indeed,
>

I've been using the "--as-needed" option for some time now and
probably most of my system has been rebuilt with it.

In my experience, the only package where "--as-needed" causes
problems is libdrm, which will not compile using this option.
The solution is to define a specific LDFLAGS variable without
"--as-needed" just for libdrm in the /etc/portage/env directory.

I forget what this method is called, but using the /etc/portage/env
directory is one way to allow CFLAGS, LDFLAGS, etc. to be
customized for individual packages.

Another example of this kind of customization is that both Python
and Sqlite supposedly perform better with "-O3" in the CFLAGS variable.
By making an appropriate entry into /etc/portage/env one can specify
"-O3" just for these packages but use "-O2" for all other packages.

Frank Peters



  reply	other threads:[~2010-01-22 13:39 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-22  0:44 [gentoo-amd64] Please suggest settings and flags in /etc/make.conf? Mark Knecht
2010-01-21 23:49 ` Juan Fco. Giordana
2010-01-22 13:25   ` Mark Knecht
2010-01-22  3:05 ` Lie Ryan
2010-01-22  4:01   ` Mark Knecht
2010-01-22  8:02     ` Lie Ryan
2010-01-22 11:45       ` [gentoo-amd64] " Duncan
2010-01-22  5:26   ` [gentoo-amd64] " Peter Humphrey
2010-01-22  7:52     ` Lie Ryan
2010-01-22 13:27       ` Mark Knecht
2010-01-22 12:49   ` [gentoo-amd64] " Duncan
2010-01-22 13:39     ` Frank Peters [this message]
2010-01-22 19:05   ` [gentoo-amd64] " Mark Knecht

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=20100122083915.c0dab500.frank.peters@comcast.net \
    --to=frank.peters@comcast.net \
    --cc=gentoo-amd64@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