Skip to content

Missing /usr/lib64 in default search paths #10

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

Open
Flamefire opened this issue May 15, 2025 · 0 comments
Open

Missing /usr/lib64 in default search paths #10

Flamefire opened this issue May 15, 2025 · 0 comments

Comments

@Flamefire
Copy link

I ran into trouble caused by libtool adding /usr/lib64 to the rpath of a library.

sys_lib_dlsearch_path_spec seems to be intended to avoid adding default paths to rpath. For Linux (linux-gnu) it is set here:

sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"

However this misses /usr/lib64 and only adds /usr/lib

I don't see that folder in ldconf.so but in ld --verbose:

$  ld --verbose | grep SEARCH_DIR
SEARCH_DIR("=/usr/x86_64-redhat-linux/lib64"); SEARCH_DIR("=/usr/lib64"); SEARCH_DIR("=/usr/local/lib64"); SEARCH_DIR("=/lib64"); SEARCH_DIR("=/usr/x86_64-redhat-linux/lib"); SEARCH_DIR("=/usr/local/lib"); SEARCH_DIR("=/lib"); SEARCH_DIR("=/usr/lib");

Is that intentional or an oversight?
Can this be fixed/workarounded without changing the source?

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

No branches or pull requests

1 participant