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

Add tools to deal with RPATH stupidity #60

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

Add tools to deal with RPATH stupidity #60

wants to merge 1 commit into from

Conversation

sunnyflunk
Copy link
Contributor

Currently many packages are building with RPATHing the libraries due to
packages using libtool having an incorrect ld detection (cause proper detection
was broken on other distros). The introduction of LT_SYS_LIBRARY_PATH
overrides the detection to ensure it doesn't add RPATH for /usr/lib64
thinking it won't be found. The norm appears to be searching for directories
in /etc/ld.so.conf which doesn't exist in Solus.

The second tool to combat RPATH issues is adding the runpath optimize key.
--enable-new-dtags changes linking to use DT_RUNPATH instead of DT_RPATH,
the difference being that RUNPATH dirs are searched after the default
library locations. This will alleviate issues where RPATH is difficult to
remove and not break expected library loading order.

Signed-off-by: Peter O'Connor peter@solus-project.com

Currently many packages are building with RPATHing the libraries due to
packages using libtool having an incorrect ld detection (cause proper detection
was broken on other distros). The introduction of `LT_SYS_LIBRARY_PATH`
overrides the detection to ensure it doesn't add RPATH for `/usr/lib64`
thinking it won't be found. The norm appears to be searching for directories
in `/etc/ld.so.conf` which doesn't exist in Solus.

The second tool to combat RPATH issues is adding the `runpath` optimize key.
`--enable-new-dtags` changes linking to use `DT_RUNPATH` instead of `DT_RPATH`,
the difference being that `RUNPATH` dirs are searched *after* the default
library locations. This will alleviate issues where `RPATH` is difficult to
remove and not break expected library loading order.

Signed-off-by: Peter O'Connor <peter@solus-project.com>
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.

None yet

1 participant