modular Smoke kdeui
util
Sat Apr 3 19:29:08 CEST 2010 Tobias Rautenkranz <tobias@rautenkranz.ch>
* modular Smoke kdeui
diff -rN -u old-kde.ui/util/CMakeLists.txt new-kde.ui/util/CMakeLists.txt
--- old-kde.ui/util/CMakeLists.txt 2014-10-30 07:22:29.000000000 +0100
+++ new-kde.ui/util/CMakeLists.txt 1970-01-01 01:00:00.000000000 +0100
@@ -1,15 +0,0 @@
-find_package(Qt4)
-set(QT_DONT_USE_QTGUI true)
-include(${QT_USE_FILE})
-
-include(CheckCXXCompilerFlag)
-check_cxx_compiler_flag("-fvisibility=hidden" CXX_VISIBILITY)
-if(CXX_VISIBILITY)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
-endif(CXX_VISIBILITY)
-
-add_library(cl-smoke-disable-backtrace SHARED backtrace.cpp)
-target_link_libraries(cl-smoke-disable-backtrace ${QT_LIBRARIES})
-
-#install(TARGETS cl-smoke-disable-backtrace
-# LIBRARY DESTINATION lib)
diff -rN -u old-kde.ui/util/backtrace.cpp new-kde.ui/util/backtrace.cpp
--- old-kde.ui/util/backtrace.cpp 2014-10-30 07:22:29.000000000 +0100
+++ new-kde.ui/util/backtrace.cpp 1970-01-01 01:00:00.000000000 +0100
@@ -1,27 +0,0 @@
-#include <QDebug>
-
-#define BT_EXPORT __attribute__((visibility("default")))
-
-extern "C" {
-/** Overwrites backtrace_symbols in execinfo.h and does nothing.
- * Work around segfault in:
- * ~KIconLoader()
- * kRealBacktrace(int)
- * backtrace_symbols
- *
- * ~KIconLoader() is called at exit when an KApplication has been constructed.
- * Somehow a negative number is pased as size to backtrace_symbols:
- * void* trace[256];
- * backtrace_symbols(trace, -1219315128); // => SIGSEGV
- * and segfaults in sysdeps/generic/elf/backtracesyms.c:65
- */
-BT_EXPORT char**
-backtrace_symbols(void* const* buffer, int size)
-{
- qDebug() << "libcl-smoke-disable-backtrace: backtrace_symbols workaround\n"
- << "\tbuffer: " << buffer << "size: " << size;
- return NULL;
-}
-
-// overwriting backtrace(void** buffer, int size) does not work!?
-}