rpath linker args

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

rpath linker args

Michael Ellery
I’m wondering if anyone knows the details of rpath linker args. In particular, I have two paths in my CMAKE_BUILD_RPATH. On macOS, I end-up with something like this:

….  -Wl,rpath=/path/number/one -Wl,rpath=/path/number/two ….

and on linux with the same CMakeLists.txt file, I get:

…. -Wl,rpath=/path/number/one:/path/number/two …

I can’t tell from man pages if that second form is even allowed or what the linker will do with it, but my observation is that the RPATH is indeed set for the macOS binary and it is NOT set for the linux binary.

Thoughts/advice ? Anything else I can try to force the first format to be used on linux?

Mike Ellery


Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe: