Added --no-undefined to shared linker flag.