in a standard build, LDFLAGS would be the flags as passed to the compiler
driver. so they'd be in the form that $(CC) would accept, so we'd want things
like -Wl,--foo.
however, the mosys build, having imported the kernel build, passes LDFLAGS
directly to the linker in some places, and then to CC in other places. this
means you can only use flags that both `ld` and `gcc` recognize.
the attached patch is a hack to merge the two worlds (normal and linux kernel).
at least it's better than what we have today.
it also fixes the uuid/fmap tests to pass things in the right order: objects
first then libraries. otherwise, building with as-needed/static/etc... fail.
Original issue reported on code.google.com by
vapier@gmail.comon 30 Mar 2012 at 9:32Attachments: