projects/aports·blob master · refs

41 lines · 978 B

1--- a/CMakeLists.txt
2+++ b/CMakeLists.txt
3@@ -130,7 +130,6 @@
4 enable_testing()
5 find_package(PkgConfig REQUIRED)
6 find_package(Threads REQUIRED)
7-find_package(Backtrace REQUIRED)
8 find_package(Filesystem REQUIRED)
9 if(WITH_GETTEXT)
10 find_package(Gettext)
11--- a/src/CMakeLists.txt
12+++ b/src/CMakeLists.txt
13@@ -255,7 +255,6 @@
14 target_link_libraries(${APP_EXEC}
15 ${Intl_LIBRARIES}
16 ${CMAKE_THREAD_LIBS_INIT}
17- ${Backtrace_LIBRARIES}
18 std::filesystem
19
20 ${GTK3_LIBRARIES}
21--- a/src/main.cpp
22+++ b/src/main.cpp
23@@ -22,7 +22,6 @@
24 */
25
26 #include <unistd.h>
27-#include <execinfo.h>
28 #include <getopt.h>
29 #include <cstdlib>
30 #include <cstring>
31@@ -370,10 +369,6 @@
32 void *bt[16];
33 std::string::size_type addr_start, addr_end;
34 std::string line, address, line_number;
35-
36- /* Get the backtrace */
37- bt_size = backtrace(bt, 16);
38- bt_syms = backtrace_symbols(bt, bt_size);
39
40 /* Print the backtrace */
41 Logger::set_verbosity(LOG_ERROR); // disable DEBUG mode for popen_to_str()