[RFC/PATCH] buildsys: cache build flags in vars

Mike Frysinger vapier at gentoo.org
Mon Jan 16 23:53:02 UTC 2012


On Monday 16 January 2012 18:06:12 Khem Raj wrote:
> On Mon, Jan 16, 2012 at 2:19 PM, Mike Frysinger <vapier at gentoo.org> wrote:
> > On Monday 16 January 2012 14:17:52 Khem Raj wrote:
> >> On Mon, Jan 16, 2012 at 10:00 AM, Khem Raj <raj.khem at gmail.com> wrote:
> >> > On Sat, Nov 26, 2011 at 9:22 PM, Mike Frysinger <vapier at gentoo.org> 
wrote:
> >> >> Running `make clean` atm takes like 20 seconds because every subdir
> >> >> re-evaluates all the toolchain flags.  Add some helpers to automate
> >> >> the process of setting up variables to cache the result of tests,
> >> >> as well as the checking of an already set flag.
> >> >> 
> >> >> Now `make clean` takes like 2 seconds on my system.
> >> 
> >> -Wl,sort-section,alignment also seems to be computed wrongly in CFLAGS
> > 
> > i just pushed a fix.  could you give it a try ?
> 
> it fixes the first problem where CFLAG_-Wl and CFLAGS_-Wa
> were not exported but does not address isssues when options have multiple
> words

but we aren't using those.  there are plenty of extended flags that might not 
play well, but unless there's an actual need, i don't see much point in 
worrying over it ...

> your code does not handle such a case and unfortunately we use
> --sort-sections alignment in uclibc build

where ?  i don't see it.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20120116/3296e93a/attachment.asc>


More information about the uClibc mailing list