Skip to content

LDFLAGS are handled inconsistently #3

@GoogleCodeExporter

Description

@GoogleCodeExporter
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.com on 30 Mar 2012 at 9:32

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions