Gentoo Archives: gentoo-user

From: "Bo Ørsted Andresen" <bo.andresen@××××.dk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to properly change CFLAGS ?
Date: Wed, 23 Aug 2006 21:12:39
Message-Id: 200608232304.25588.bo.andresen@zlin.dk
In Reply to: Re: [gentoo-user] How to properly change CFLAGS ? by Richard Fish
1 On Tuesday 22 August 2006 05:18, Richard Fish wrote:
2 > Actually there is.  You can find all packages not compiled with -Os
3 > and rebuild them with something like:
4 >
5 > cd /var/db/pkg
6 > for pkg in */* ; do
7 >     grep -v -- "-Os" $pkg/CFLAGS >/dev/null
8 >     test $? -eq 0 && emerge --oneshot =$pkg
9 > done
10
11 Discussion further down this thread has made us aware that this will always
12 make stuff like gcc, mozilla-firefox and openoffice become rebuilt despite
13 that rebuilding them won't change their CFLAGS at all...
14
15 --
16 Bo Andresen

Replies

Subject Author
Re: [gentoo-user] How to properly change CFLAGS ? Richard Fish <bigfish@××××××××××.org>