File: use-system-libbacktrace

package info (click to toggle)
apitrace 11.1%2Brepack-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 13,620 kB
  • sloc: cpp: 183,110; python: 33,685; ansic: 25,073; sh: 143; makefile: 88
file content (25 lines) | stat: -rw-r--r-- 796 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: Use system libbacktrace
Forwarded: not-needed
Author: David Heidelberg <david@ixit.cz>

--- a/lib/os/CMakeLists.txt
+++ b/lib/os/CMakeLists.txt
@@ -20,7 +20,7 @@ target_link_libraries (os PUBLIC Threads::Threads)
 
 if (CMAKE_EXECUTABLE_FORMAT STREQUAL "ELF")
     target_compile_definitions (os PRIVATE HAVE_BACKTRACE=1)
-    target_link_libraries (os PUBLIC backtrace)
+    target_link_libraries (os PUBLIC backtrace ${CMAKE_DL_LIBS})
 endif ()
 
 if (WIN32)
--- a/thirdparty/CMakeLists.txt
+++ b/thirdparty/CMakeLists.txt
@@ -52,7 +52,6 @@ if (NOT BROTLIDEC_FOUND OR NOT BROTLIENC_FOUND)
 endif ()
 
 if (CMAKE_EXECUTABLE_FORMAT STREQUAL "ELF")
-    include_with_scope (libbacktrace.cmake)
 endif ()
 
 # We use non-standard C++ flags, so we can't just use GTest's CMakeLists.txt