1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#include "libA.h" #undef DLL_PUBLIC #define BUILDING_DLL #include "config.h" namespace meson_test_as_needed { namespace { bool set_linked() { linked = true; return true; } bool stub = set_linked(); } DLL_PUBLIC int libB_unused_func() { return 0; } }