mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
add -fstack-protector-strong to capture more stack issues
This commit is contained in:
parent
6c55a332d2
commit
d624dc5569
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
project(Miraclecast)
|
||||
|
||||
SET(PACKAGE_NAME miraclecast)
|
||||
|
@ -8,7 +9,7 @@ SET(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
|
|||
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake
|
||||
${CMAKE_MODULE_PATH})
|
||||
|
||||
set(CMAKE_C_FLAGS "-std=gnu11 -Wall ${CMAKE_C_FLAGS}")
|
||||
set(CMAKE_C_FLAGS "-std=gnu11 -Wall -fstack-protector-strong ${CMAKE_C_FLAGS}")
|
||||
add_definitions(-D_GNU_SOURCE)
|
||||
|
||||
SET(BUILD_BINDIR "${CMAKE_INSTALL_PREFIX}/bin")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue