instead only link it to the main executable with --whole-archive, letting the dynamic libs import anything they want from it