[CMake] Let llvm-shlib work on Linux with --whole-archive.