Skip to content

rpath being set incorrectly #48

@twmarshall

Description

@twmarshall

When setting LDFLAGS in init-compiler, we do the escaping of "$ORIGIN" in rpath incorrectly - if you look at the output of a build you'll see rpath being set to something of the form 'RIGIN/../lib', when it should be '$ORIGIN/../lib'

I played around with it for awhile and unfortunately was not able to come up with an escaping that seems to actually work.

One possible solution would be to use a tool like chrpath or patchelf to update the rpath after everything is done, as I've done here: https://github.com/twmarshall/native-toolchain/tree/rpath, but this adds a dependency on a non-standard package, which isn't ideal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions