libcxxabi-fix-link-builtins
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Mon, 9 May 2022 18:47:26 +0000 (19:47 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Mon, 9 May 2022 18:47:26 +0000 (19:47 +0100)
if LIBCXXABI_USE_COMPILER_RT=ON, add builtins to libcxxabi library
flags, otherwise add libgcc following how libunwind does the same

Gbp-Pq: Name libcxxabi-fix-link-builtins.diff

libcxxabi/src/CMakeLists.txt

index f07d4334916ae1de79c3f33bda27228fa29105d2..3792bfee6d87282aff5fdec3f00ec10275c735c2 100644 (file)
@@ -111,7 +111,9 @@ if (ANDROID AND ANDROID_PLATFORM_LEVEL LESS 21)
   list(APPEND LIBCXXABI_LIBRARIES android_support)
 endif()
 
-if (NOT LIBCXXABI_USE_COMPILER_RT)
+if (LIBCXXABI_USE_COMPILER_RT)
+  add_library_flags("${LIBCXXABI_BUILTINS_LIBRARY}")
+else()
   add_library_flags_if(LIBCXXABI_HAS_GCC_LIB gcc)
 endif ()