mirror of
https://github.com/albfan/miraclecast.git
synced 2025-02-12 15:21:55 +00:00
remove tests for security related compiler flags
Change-Id: Ia51167abc10c4c8bc03f58883aca06e05879c6e9
This commit is contained in:
parent
c388985345
commit
8201db761a
1 changed files with 0 additions and 9 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue