From ec5776d92d2dc8dd702ae069a5f95a2ac87f1328 Mon Sep 17 00:00:00 2001 From: vincowl Date: Sat, 26 Oct 2019 21:36:26 +0200 Subject: [PATCH] build: add -fstack-protector* to linker #11292 Needed by chromeOS. fixes #11228 --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 790fc9fb41..4affe8795c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -303,8 +303,10 @@ if(UNIX) if(HAS_FSTACK_PROTECTOR_STRONG_FLAG) add_compile_options(-fstack-protector-strong) + link_libraries(-fstack-protector-strong) elseif(HAS_FSTACK_PROTECTOR_FLAG) add_compile_options(-fstack-protector --param ssp-buffer-size=4) + link_libraries(-fstack-protector --param ssp-buffer-size=4) endif() endif()