pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: rust-1.81.0 & LLVM, LLD and cmake



I've tried reading up the cmake docs on this.

I found BUILD_RPATH_USE_ORIGIN.
https://cmake.org/cmake/help/latest/prop_tgt/BUILD_RPATH_USE_ORIGIN.html#build-rpath-use-origin

Can you turn that off for llvm?

There's also CMAKE_SKIP_INSTALL_RPATH and CMAKE_SKIP_BUILD_RPATH if
you want to completely disable use of rpath during install or build.

Or try setting INSTALL_RPATH directly to the absolute paths.
https://cmake.org/cmake/help/latest/prop_tgt/INSTALL_RPATH.html#install-rpath

The proper variable seems to be CMAKE_BUILD_RPATH_USE_ORIGIN which is
used to initialize BUILD_RPATH_USE_ORIGIN. This is documented to
default to false, but perhaps llvm sets it to true?

https://cmake.org/cmake/help/latest/prop_tgt/BUILD_RPATH_USE_ORIGIN.html#prop_tgt:BUILD_RPATH_USE_ORIGIN

I hope this helps!
 Thomas


Home | Main Index | Thread Index | Old Index