Skip to content
Snippets Groups Projects
Commit 39a0cacd authored by Ludovico de Nittis's avatar Ludovico de Nittis
Browse files

runtime: Create library aliases in overrides

If a library has different SONAMEs, called aliases in
"steam-runtime-abi.json", it might lead to errors when a game tries to
load a SONAME that is not the "real" library SONAME (the DT_SONAME that
objdump shows). Because `ld.so.cache` will not consider the aliases when
searching for the right match.

To workaround this problem we create a directory called "aliases" that
contains symlinks of the libraries aliases that we know about.

By adding these directories, one for every multiarch, in the
`LD_LIBRARY_PATH`, we ensure that even games that were linked to an
alias will be able to find the library they were looking for.

Helps: https://github.com/ValveSoftware/steam-runtime/issues/246


Fixes: T26816

Signed-off-by: default avatarLudovico de Nittis <ludovico.denittis@collabora.com>
parent 6adf785c
No related branches found
No related tags found
1 merge request!267runtime: Create libraries aliases in overrides
Pipeline #10298 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment