A brief research (that's what we call googling now: research!) shows that:
Meson seems to have given up on this idea; their shared_module() seems to just disable --no-undefined
CMake has ENABLE_EXPORTS, which is said to do platform specific stuff (including -bundle_loader on Darwin, yay!), yet on Linux "loadable modules are simply linked without referencing the executable".