Skip to content

rpath setup doesn't take user-specified LIBDIR path into account #2999

@rathann

Description

@rathann

The rpath set-up code in CMakeLists:81 doesn't account for setting CMAKE_INSTALL_LIBDIR and the built binaries cannot find libbinaryen.so:

asm2wasm: error while loading shared libraries: libbinaryen.so: cannot open shared object file: No such file or directory

rpath is always set to $ORIGIN/../lib, regardless of the user-specified install location. Is libbinaryen.so supposed to be installed system-wide for other software to consume or is it an internal implementation detail? If the former, then it should have a proper SONAME and care should be taken to avoid making incompatible ABI changes without bumping SONAME. If the latter, then it should not be installed into /usr/lib or /usr/lib64 by default.

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