-
Notifications
You must be signed in to change notification settings - Fork 27
/
04-stack-protector.patch
29 lines (28 loc) · 1.39 KB
/
04-stack-protector.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- a/CompilerChecks.cmake
+++ b/CompilerChecks.cmake
@@ -66,20 +66,20 @@
endif()
endif()
- check_c_compiler_flag_ssp("-fstack-protector-strong" WITH_STACK_PROTECTOR_STRONG)
+ check_c_compiler_flag_ssp("-fno-stack-protector-strong" WITH_STACK_PROTECTOR_STRONG)
if (WITH_STACK_PROTECTOR_STRONG)
- list(APPEND SUPPORTED_COMPILER_FLAGS "-fstack-protector-strong")
+ list(APPEND SUPPORTED_COMPILER_FLAGS "-fno-stack-protector-strong")
# This is needed as Solaris has a seperate libssp
if (SOLARIS)
- list(APPEND SUPPORTED_LINKER_FLAGS "-fstack-protector-strong")
+ list(APPEND SUPPORTED_LINKER_FLAGS "-fno-stack-protector-strong")
endif()
else (WITH_STACK_PROTECTOR_STRONG)
- check_c_compiler_flag_ssp("-fstack-protector" WITH_STACK_PROTECTOR)
+ check_c_compiler_flag_ssp("-fno-stack-protector" WITH_STACK_PROTECTOR)
if (WITH_STACK_PROTECTOR)
- list(APPEND SUPPORTED_COMPILER_FLAGS "-fstack-protector")
+ list(APPEND SUPPORTED_COMPILER_FLAGS "-fno-stack-protector")
# This is needed as Solaris has a seperate libssp
if (SOLARIS)
- list(APPEND SUPPORTED_LINKER_FLAGS "-fstack-protector")
+ list(APPEND SUPPORTED_LINKER_FLAGS "-fno-stack-protector")
endif()
endif()
endif (WITH_STACK_PROTECTOR_STRONG)