diff --git a/CMakeLists.txt b/CMakeLists.txt index 99e84f4..41d2fb3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,15 +24,6 @@ pkg_check_modules (SYSTEMD REQUIRED libsystemd) pkg_check_modules (GSTREAMER REQUIRED gstreamer-1.0) pkg_check_modules (GSTREAMER_BASE REQUIRED gstreamer-base-1.0) -include(CheckCCompilerFlag) -check_c_compiler_flag(-fstack-protector-strong HAS_STACK_PROTCTOR_STRONG) -check_c_compiler_flag(-fsanitize=undefined HAS_SANITIZE_UNDEFINED) -if(HAS_STACK_PROTCTOR_STRONG) - set(CMAKE_C_FLAGS "-fstack-protector-strong ${CMAKE_C_FLAGS}") -endif() -if(HAS_SANITIZE_UNDEFINED) - set(CMAKE_C_FLAGS "-fsanitize=undefined ${CMAKE_C_FLAGS}") -endif() set(CMAKE_C_FLAGS "-std=gnu11 -Wall ${CMAKE_C_FLAGS}") add_definitions(-D_GNU_SOURCE)