_findLib_ld was added due to issue #9998 which adds LD_LIBRARY_PATH lookup 
to find_library().

PyInstaller appends the temporary working folder (/tmp/_MEI...*) to 
LD_LIBRARY_PATH

TLDR - the bundled DIR/FILE contains shared libraries with the MAJOR.MINOR 
values, i.e

/tmp/_MEI9238wxa/libcrypto.so.1.0.0
/tmp/_MEI9238wxa/libmpdec.so.2
/tmp/_MEI9238wxa/libz.so.1
/tmp/_MEI9238wxa/libmylibrary.so.1

Next, assume we're trying to run ctypes.util.find_library("mylibrary")
_findLib_ld will be called, and invoke the following:

ld -t -L /tmp/anun -o /dev/null -l mylibrary

But this won't find libmylibrary.so.1. For ld to find it, one must created 
a symlink
from /tmp/_MEI9238wxa/libmylibrary.so -> tmp/_MEI9238wxa/libmylibrary.so.1

Ideas on how to solve this?

Linux versions:
Linux db94be6a9ff0 5.10.25-linuxkit #1 SMP Tue Mar 23 09:27:39 UTC 2021 
x86_64 GNU/Linux
ldd (Debian GLIBC 2.24-11+deb9u4) 2.24

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/651ea501-4cde-4560-865d-0ef0878f7ab0n%40googlegroups.com.

Reply via email to