Index: llvm/trunk/tools/llvm-shlib/CMakeLists.txt =================================================================== --- llvm/trunk/tools/llvm-shlib/CMakeLists.txt +++ llvm/trunk/tools/llvm-shlib/CMakeLists.txt @@ -55,7 +55,7 @@ # GNU ld doesn't resolve symbols in the version script. set(LIB_NAMES -Wl,--whole-archive ${LIB_NAMES} -Wl,--no-whole-archive) - if (NOT LLVM_LINKER_IS_SOLARISLD) + if (NOT LLVM_LINKER_IS_SOLARISLD AND NOT MINGW) # Solaris ld does not accept global: *; so there is no way to version *all* global symbols set(LIB_NAMES -Wl,--version-script,${LLVM_LIBRARY_DIR}/tools/llvm-shlib/simple_version_script.map ${LIB_NAMES}) endif()