2018-01-09 19:28:29 +01:00
|
|
|
PATCH-P0-FIX-HACK: Not enforcing specific flags
|
|
|
|
|
|
|
|
Useing some CFLAGS from distribution and some enforced can and leads to the
|
|
|
|
conflicts like FORTIFY and -O0. Removing hardcoded options.
|
|
|
|
|
|
|
|
Maintainer: Michal Hrusecky <mhrusecky@suse.cz>
|
|
|
|
|
|
|
|
Index: CMakeLists.txt
|
|
|
|
===================================================================
|
|
|
|
--- CMakeLists.txt.orig
|
|
|
|
+++ CMakeLists.txt
|
2020-08-24 23:33:18 +02:00
|
|
|
@@ -242,7 +242,6 @@ IF(SECURITY_HARDENED AND NOT WITH_ASAN A
|
2020-02-04 15:05:21 +01:00
|
|
|
MY_CHECK_AND_SET_COMPILER_FLAG("-pie -fPIC")
|
2020-08-24 23:33:18 +02:00
|
|
|
MY_CHECK_AND_SET_LINKER_FLAG("-Wl,-z,relro,-z,now")
|
2020-02-04 15:05:21 +01:00
|
|
|
MY_CHECK_AND_SET_COMPILER_FLAG("-fstack-protector --param=ssp-buffer-size=4")
|
|
|
|
- MY_CHECK_AND_SET_COMPILER_FLAG("-D_FORTIFY_SOURCE=2" RELEASE RELWITHDEBINFO)
|
2018-01-09 19:28:29 +01:00
|
|
|
ENDIF()
|
|
|
|
|
2020-02-04 15:05:21 +01:00
|
|
|
INCLUDE(wsrep)
|