Enable control flow protection with Clang
This commit is contained in:
parent
f0bd6fafa2
commit
15f79e19f5
2 changed files with 4 additions and 4 deletions
4
external/dispatch/CMakeLists.txt
vendored
4
external/dispatch/CMakeLists.txt
vendored
|
|
@ -17,8 +17,8 @@ if (NOT DESKTOP_APP_DISPATCH_LIBRARIES OR NOT DESKTOP_APP_DISPATCH_INCLUDE_DIRS)
|
|||
if (NOT DESKTOP_APP_USE_PACKAGED OR DESKTOP_APP_SPECIAL_TARGET)
|
||||
set(dispatch_extra_args
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
"-DCMAKE_C_FLAGS=-g -pipe -fPIC -fstack-protector-all -fstack-clash-protection -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS"
|
||||
"-DCMAKE_CXX_FLAGS=-g -pipe -fPIC -fstack-protector-all -fstack-clash-protection -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS"
|
||||
"-DCMAKE_C_FLAGS=-g -pipe -fPIC -fstack-protector-all -fstack-clash-protection -fcf-protection -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS"
|
||||
"-DCMAKE_CXX_FLAGS=-g -pipe -fPIC -fstack-protector-all -fstack-clash-protection -fcf-protection -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS"
|
||||
)
|
||||
elseif (DEFINED CMAKE_BUILD_TYPE)
|
||||
set(dispatch_extra_args
|
||||
|
|
|
|||
4
external/jemalloc/CMakeLists.txt
vendored
4
external/jemalloc/CMakeLists.txt
vendored
|
|
@ -39,8 +39,8 @@ ExternalProject_Add(jemalloc
|
|||
CONFIGURE_COMMAND env
|
||||
CC=clang
|
||||
CXX=clang++
|
||||
"$<IF:$<OR:$<NOT:$<BOOL:${DESKTOP_APP_USE_PACKAGED}>>,$<BOOL:${DESKTOP_APP_SPECIAL_TARGET}>>,EXTRA_CFLAGS=-fstack-protector-all -fstack-clash-protection -DNDEBUG -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS,=>"
|
||||
"$<IF:$<OR:$<NOT:$<BOOL:${DESKTOP_APP_USE_PACKAGED}>>,$<BOOL:${DESKTOP_APP_SPECIAL_TARGET}>>,EXTRA_CXXFLAGS=-fstack-protector-all -fstack-clash-protection -DNDEBUG -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS,=>"
|
||||
"$<IF:$<OR:$<NOT:$<BOOL:${DESKTOP_APP_USE_PACKAGED}>>,$<BOOL:${DESKTOP_APP_SPECIAL_TARGET}>>,EXTRA_CFLAGS=-fstack-protector-all -fstack-clash-protection -fcf-protection -DNDEBUG -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS,=>"
|
||||
"$<IF:$<OR:$<NOT:$<BOOL:${DESKTOP_APP_USE_PACKAGED}>>,$<BOOL:${DESKTOP_APP_SPECIAL_TARGET}>>,EXTRA_CXXFLAGS=-fstack-protector-all -fstack-clash-protection -fcf-protection -DNDEBUG -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS,=>"
|
||||
./autogen.sh --disable-shared
|
||||
BUILD_COMMAND make $<$<NOT:$<EQUAL:${N},0>>:-j${N}>
|
||||
BUILD_IN_SOURCE 1
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue