1
0
Fork 0
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:
Derek Dai 2017-05-11 16:31:02 +08:00
parent c388985345
commit 8201db761a
No known key found for this signature in database
GPG key ID: E109CC97553EF009

View file

@ -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)