- cross-posted to:
- linux@programming.dev
- cross-posted to:
- linux@programming.dev
geteilt von: https://lemmy.ml/post/38099727
(translated) According to my statistics, the vast majority of my visitors use a Unix-like or Unix operating system. What do these OSs have in common? They all have their own preloader, which is used to load shared libraries.
Use the translator in the sidebar to translate the page.


But LD_PRELOAD doesn’t really have much to do with build time behavior (unless you’re talking about replacing parts of the compiler) - it allows you to force a shared library to be loaded with higher priority than anything else, so it overrides symbols from other libraries.
It is recognized and used by Linux’s dynamic linker, which is run-time, not build-time.