diff options
author | Stefan Maksimovic <stefan.maksimovic@mips.com> | 2018-08-16 13:40:16 +0000 |
---|---|---|
committer | Stefan Maksimovic <stefan.maksimovic@mips.com> | 2018-08-16 13:40:16 +0000 |
commit | afc9f8ab6d2d4a0776a379e1e6513ee49bec9b29 (patch) | |
tree | 02da5747f54ad91e6ed6fea402ac72f8c9eb2dc2 /libunwind | |
parent | 51534ab864f7581d8972e87ba0211a0f9dbe46ed (diff) |
[libunwind][mips] Include gcc_s for linkage
When compiling with optimizations, mips requires various helper routines(__ashldi3 and the like) contained in libgcc_s.
Conditionally include libgcc_s in the set of libraries to be linked to.
Differential Revision: https://reviews.llvm.org/D50243
llvm-svn: 339878
Diffstat (limited to 'libunwind')
-rw-r--r-- | libunwind/src/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libunwind/src/CMakeLists.txt b/libunwind/src/CMakeLists.txt index 7a737ef2c16d..484d00dc120d 100644 --- a/libunwind/src/CMakeLists.txt +++ b/libunwind/src/CMakeLists.txt @@ -52,6 +52,7 @@ set(LIBUNWIND_SOURCES # Generate library list. set(libraries ${LIBUNWINDCXX_ABI_LIBRARIES}) append_if(libraries LIBUNWIND_HAS_C_LIB c) +append_if(libraries LIBUNWIND_HAS_GCC_S_LIB gcc_s) append_if(libraries LIBUNWIND_HAS_DL_LIB dl) if (LIBUNWIND_ENABLE_THREADS) append_if(libraries LIBUNWIND_HAS_PTHREAD_LIB pthread) |