[libdazzle: 1/2] Fix link errors with GCC7 and older macOS




commit 9c9f93f5eb53ae6450d17c1175931d09eeec92c5
Author: Evan Miller <emmiller gmail com>
Date:   Thu Sep 16 12:22:57 2021 +0000

    Fix link errors with GCC7 and older macOS

 meson.build | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/meson.build b/meson.build
index 92bac5b..3340851 100644
--- a/meson.build
+++ b/meson.build
@@ -142,6 +142,9 @@ test_link_args = [
   '-Wl,-z,relro',
   '-Wl,-z,now',
 ]
+if get_option('buildtype') != 'plain'
+  test_link_args += '-fstack-protector-strong'
+endif
 if not get_option('buildtype').startswith('debug')
   # TODO: Maybe reuse 'b_ndebug' option
   release_args += [ '-DG_DISABLE_ASSERT', '-DG_DISABLE_CAST_CHECKS' ]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]