by jwilk · 2y ago · 0 comments
Instead of dlopen()ing libfoo.so.7, you should build a private wrapper library, normally linked with -lfoo, and then dlopen() that private wrapper. Then you get dependency tracking for free.
This seems a lot like a workaround for our tools not supporting optional dependencies. Let's fix that instead.