Skip to content

RPATH entires in std_cmake_args undermine install from static builds #2658

@cyrush

Description

@cyrush

I am building a project that has exes that link to static libs on bgq using gcc. Our project uses a CMake-based build system.

In our build system I noticed I had to disable any RPATH related CMake settings to avoid relinking errors during install.

When building with spack the issue reappeared b/c spack includes RPATH settings as part of std_cmake_args.

I can easily filter the std_cmake_args related to RPATH for this case, but I suspect others may stumble over this. Not sure what the best solution would be for changing the install env.

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