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

Mike Frysinger vapier at gentoo.org
Tue Jan 17 02:12:45 UTC 2012


On Monday 16 January 2012 20:48:52 Khem Raj wrote:
> On Mon, Jan 16, 2012 at 5:11 PM, Mike Frysinger wrote:
> > On Monday 16 January 2012 18:53:02 Mike Frysinger wrote:
> >> On Monday 16 January 2012 18:06:12 Khem Raj wrote:
> >> > your code does not handle such a case and unfortunately we use
> >> > --sort-sections alignment in uclibc build
> >> 
> >> where ?  i don't see it.
> > 
> > oh, the flag is "--sort-section alignment".  the code already handles
> > spaces by replacing them with %.  it does mean you can't have
> > flags/params with % in them, but i don't know any that matter.
> 
> it handles it for ld but not for gcc driver

you don't check linker flags via gcc.  you check the linker flags via the 
linker.  this is why the cache funcs setup additional variables for use via 
the compiler driver.

# Usage: check-ld-var,<flag>
# Check the linker to see if it supports <flag>.  Export the
# variable LDFLAG_<flag> if it does (for invoking the linker),
# as well CFLAG_-Wl<flag> (for invoking the compiler driver).
-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/3e2ceaee/attachment.asc>


More information about the uClibc mailing list