diff --git a/CMakeLists.txt b/CMakeLists.txt index f84e172..3c1b447 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,8 +31,14 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) "MinSizeRel" "RelWithDebInfo") endif() -add_compile_options(-fdata-sections -ffunction-sections -Wswitch-enum - -Werror=switch-enum -fPIC) +add_compile_options( + -fdata-sections + -ffunction-sections + -Wswitch-enum + -Werror=switch-enum + -fPIC + -g + -fno-omit-frame-pointer) set(full_relro_flags "-pie;LINKER:-z,relro,-z,now,-z,noexecstack") cmake_push_check_state()