Although undocumented, there's a way to explicitly disable static linking in Stubby, setting the CMake build option ENABLE_GETDNS_STATIC_LINK to OFF (ON by default). Make it so. Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>