Skip to content

RUNPATH not regard LLVM_ENABLE_PER_TARGET_RUNTIME_DIR #54955

@songdongsheng

Description

@songdongsheng

When build LLVM/CLang release/14.x with -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON and -DLLVM_DEFAULT_TARGET_TRIPLE=x86_64-unknown-linux-gnu:

$ readelf -d clang-14 | grep RUNPATH
  0x000000000000001d (RUNPATH)      Library runpath: [$ORIGIN/../lib]

It should be:

$ readelf -d clang-14 | grep RUNPATH
  0x000000000000001d (RUNPATH)      Library runpath: [$ORIGIN/../lib:$ORIGIN/../lib/x86_64-unknown-linux-gnu]

Metadata

Metadata

Assignees

No one assigned

    Labels

    cmakeBuild system in general and CMake in particularlibc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions