From: Zachary Turner Date: Wed, 6 May 2015 22:26:51 +0000 (+0000) Subject: Fix link failure on MinGW due to use of CoInitialize. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=ea89afbb84a9a066335ef2c20d6b4f2f8e6de579;p=oota-llvm.git Fix link failure on MinGW due to use of CoInitialize. ole32 is considered a default library with MSVC, but apparently not with MinGW. Since we use CoInitialize, we need to explicitly link against it in LLVMSupport for a MinGW build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236654 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/CMakeLists.txt b/lib/Support/CMakeLists.txt index a91600fc4dd..783231d22e7 100644 --- a/lib/Support/CMakeLists.txt +++ b/lib/Support/CMakeLists.txt @@ -1,7 +1,7 @@ set(system_libs) if( NOT MSVC ) if( MINGW ) - set(system_libs ${system_libs} imagehlp psapi shell32) + set(system_libs ${system_libs} imagehlp psapi shell32 ole32) elseif( CMAKE_HOST_UNIX ) if( HAVE_LIBRT ) set(system_libs ${system_libs} rt)