diff options
author | vincowl <vince512@free.fr> | 2019-10-26 21:36:26 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-10-26 12:36:26 -0700 |
commit | ec5776d92d2dc8dd702ae069a5f95a2ac87f1328 (patch) | |
tree | 0b197f6fb4d68ec3bd0df20006e8a6fd69922a1d | |
parent | 19ba36d0e1bb4ef28f8aa92c7386345fbcf78cf2 (diff) | |
download | rneovim-ec5776d92d2dc8dd702ae069a5f95a2ac87f1328.tar.gz rneovim-ec5776d92d2dc8dd702ae069a5f95a2ac87f1328.tar.bz2 rneovim-ec5776d92d2dc8dd702ae069a5f95a2ac87f1328.zip |
build: add -fstack-protector* to linker #11292
Needed by chromeOS.
fixes #11228
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
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() |