diff options
author | Eric Fiselier <eric@efcs.ca> | 2017-05-11 03:29:59 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2017-05-11 03:29:59 +0000 |
commit | 1e5f94fb78e91326d20d076c15cb2d5cec8eee78 (patch) | |
tree | be9a004e20671600addd7e7cfb8c05afb51015aa /src/CMakeLists.txt | |
parent | 9a8ac6a3a5f494e8a1de3191d9fb8cdb32227f8c (diff) |
Fix Libc++abi linking under MinGW64
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@302760 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1efc92e..cbf962f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -74,6 +74,10 @@ if (LIBCXXABI_USE_LLVM_UNWINDER) else() append_if(libraries LIBCXXABI_HAS_GCC_S_LIB gcc_s) endif() +if (MINGW) + # MINGW_LIBRARIES is defined in config-ix.cmake + list(APPEND libraries ${MINGW_LIBRARIES}) +endif() # Setup flags. append_if(LIBCXXABI_COMPILE_FLAGS LIBCXXABI_HAS_FPIC_FLAG -fPIC) |