diff --git a/CMakeLists.txt b/CMakeLists.txt index 264c40276..5c291033d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -563,5 +563,6 @@ if(UNIX AND NOT APPLE) install(FILES packaging/linux/icons/512x512/application-vnd.olive-project.png DESTINATION share/icons/hicolor/512x512/mimetypes) install(FILES ${OLIVE_QM_FILES} DESTINATION share/olive-editor/ts) - target_link_options(${OLIVE_TARGET} PRIVATE $<$:-rdynamic>) + set(CMAKE_CXX_FLAGS "-rdynamic ${CMAKE_CXX_FLAGS}") + set(CMAKE_SHARED_LINKER_FLAGS "-rdynamic ${CMAKE_SHARED_LINKER_FLAGS}") endif() diff --git a/global/crashhandler.h b/global/crashhandler.h index da11558bd..af3e58198 100644 --- a/global/crashhandler.h +++ b/global/crashhandler.h @@ -2,6 +2,7 @@ #define CRASHHANDLER_H #ifdef __GNUC__ +#include void handler(int sig); #endif