Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#69279 - [clang] Remove RPATH from installed files

Attached to Project: Arch Linux
Opened by Emil (xexaxo) - Sunday, 10 January 2021, 18:23 GMT
Last edited by Andreas Radke (AndyRTR) - Wednesday, 21 April 2021, 10:31 GMT
Task Type Bug Report
Category Packages: Testing
Status Assigned
Assigned To Evangelos Foutras (foutrelis)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No



By default, clang supports installation outside of /usr/lib. As such if force enables the cmake "INSTALL_RPATH" so the RPATH is embedded into the binaries and libraries. Since Arch uses the /usr/lib having the RPATH is not needed (and in some corner-cases wrong).

Please drop rpath by using

Additional info:
* package version(s)

Steps to reproduce:
1. Rebuild with `cmake -DCMAKE_SKIP_RPATH=TRUE ...`
2. Run any program which uses clang
3. Things just work
This task depends upon