You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
unix: add slash to DT_NEEDED to force loading our libpython
indygreg/PyOxidizer#406 reported that presence
of LD_LIBRARY_PATH can cause the loader to pull in a libpython from an
unrelated Python install. This is because our DT_NEEDED values were
relative paths (e.g. `libpython3.9.so.1.0`) and the Linux loader will
use LD_LIBRARY_PATH over DT_RUNPATH unless the DT_NEEDED value contains
contains a slash. See the ld.so man page for more.
This commit adds a slash to our DT_NEEDED values to force the loader to
load an explicit relative path, thus eliminating the potential for
LD_LIBRARY_PATH to intefere with libpython resolution.
0 commit comments