do not inherit -static flags for shared library build.