diff options
author | Christian Persch <chpe@src.gnome.org> | 2021-12-27 19:24:46 +0100 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2021-12-27 19:24:46 +0100 |
commit | e32dba1d5cf884959af5b2c0691db00c263ea048 (patch) | |
tree | 0eacb65d0f2c0fe464479b217ddb3ef765d8998f | |
parent | 730cca20d69cdd7fc8a67b6f578293b07373cf97 (diff) | |
download | vte-e32dba1d5cf884959af5b2c0691db00c263ea048.tar.gz |
build: Fix check for -fstack-protector* compiler support
Need to use has_link_argument() on some platforms.
Fixes: https://gitlab.gnome.org/GNOME/vte/-/issues/2535
-rw-r--r-- | meson.build | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meson.build b/meson.build index 93b7f376..381d5d58 100644 --- a/meson.build +++ b/meson.build @@ -461,8 +461,6 @@ compiler_flags_common = [ '-fdiagnostics-show-option', '-fno-common', '-fno-semantic-interposition', - '-fstack-protector', - '-fstack-protector-strong', ] if enable_debug @@ -550,6 +548,10 @@ add_project_arguments(global_cxxflags, language: 'cpp') linker_flags = [ ['-Wl,-Bsymbolic', false,], ['-Wl,-Bsymbolic-functions', get_option('_b_symbolic_functions'),], + + # See issue vte#2535. + ['-fstack-protector', false], + ['-fstack-protector-strong', false], ] foreach flag: linker_flags |