Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMakeLists: use absolute libdir in rpath handling #438

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jirislaby
Copy link
Contributor

Commit a26083b (Fixing libdirs for CMakeLists) switched from
${CMAKE_INSTALL_PREFIX}/lib to ${CMAKE_INSTALL_LIBDIR}. It fixed the
issue with lib vs lib64. But while the former is absolute, the latter
needs not. That causes troubles as rpath can be set to something like
lib64 only. That is bogus.

So fix this by using absolute ${CMAKE_INSTALL_FULL_LIBDIR} from
GNUInstallDirs which is already included and handles the paths correctly.

Fixes #437.

Commit a26083b (Fixing libdirs for CMakeLists) switched from
"${CMAKE_INSTALL_PREFIX}/lib" to "${CMAKE_INSTALL_LIBDIR}". It fixed the
issue with lib vs lib64. But while the former is absolute, the latter
needs not. That causes troubles as rpath can be set to something like
"lib64" only. That is bogus.

So fix this by using absolute "${CMAKE_INSTALL_FULL_LIBDIR}" from
GNUInstallDirs which is already included and handles the paths
correctly.

Fixes stp#437.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rpath doesn't work correctly with relative CMAKE_INSTALL_LIBDIR
1 participant