Just build shared libraries for static analysis. Building the static libs just does the same work twice.