File: use-system-libbacktrace

package info (click to toggle)
apitrace 13.0%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,752 kB
  • sloc: cpp: 183,974; python: 33,969; ansic: 25,566; sh: 169; makefile: 88; sed: 3
file content (25 lines) | stat: -rw-r--r-- 721 bytes parent folder | download
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
 
 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
@@ -56,7 +56,6 @@ if (NOT BROTLIDEC_FOUND OR NOT BROTLIENC
 endif ()
 
 if (CMAKE_EXECUTABLE_FORMAT STREQUAL "ELF")
-    include_with_scope (libbacktrace.cmake)
 endif ()
 
 if (BUILD_TESTING)