How to make weak linking work with GCC?

I just looked into this and thought some others might be interested in my findings. Weak linking with weak_import really only works well with dynamic libraries. You can get it to work with static linking (by specifying -undefined dynamic_lookup as suggested above) but this isn’t such a hot idea. It means that no undefined symbols … Read more