From 6db7a5cd7c800a588e94ce5c1ef24ae4d60ecdd3 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Mon, 4 Nov 2019 16:55:31 -0800 Subject: [PATCH] build: explicitly set the linker language for unwind The unwinder should not depend on libc++. In fact, we do not end up with a link against libc++ as we do not have a dependency on libc++ at runtime. This ensures that we link with `clang` rather than `clang++`. --- libunwind/src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libunwind/src/CMakeLists.txt b/libunwind/src/CMakeLists.txt index ed20ff0..1ecda264 100644 --- a/libunwind/src/CMakeLists.txt +++ b/libunwind/src/CMakeLists.txt @@ -127,6 +127,8 @@ if (LIBUNWIND_ENABLE_SHARED) "${LIBUNWIND_COMPILE_FLAGS}" LINK_FLAGS "${LIBUNWIND_LINK_FLAGS}" + LINKER_LANGUAGE + C OUTPUT_NAME "unwind" VERSION -- 2.7.4