mirror of https://github.com/nomic-ai/gpt4all
dlhandle: prevent libs from using each other's symbols (#977)
use RTLD_LOCAL so that symbols are *only* exposed via dlsym without this all symbols exported by the libs are available for symbol resolution, resulting in different lib versions potentially resolving *each other's* symbols, causing incredibly cursed behavior such as https://gist.github.com/apage43/085c1ff69f6dd05387793ebc301840f6niansa-patch-4
parent
f71d8efc71
commit
c4319d2c8e
Loading…
Reference in New Issue