diff mupdf-source/scripts/wrap/__main__.py @ 33:c4daa0c83d64

Apply also -fstack-clash-protection and -fstack-protector-strong for all generated binaries. Only done if EXTRA_CHECKS is not empty and not 0.
author Franz Glasner <fzglas.hg@dom66.de>
date Sun, 21 Sep 2025 17:55:13 +0200
parents 72c1b70d4f5c
children 71bcc18e306f
line wrap: on
line diff
--- a/mupdf-source/scripts/wrap/__main__.py	Sun Sep 21 15:10:12 2025 +0200
+++ b/mupdf-source/scripts/wrap/__main__.py	Sun Sep 21 17:55:13 2025 +0200
@@ -1544,6 +1544,8 @@
     if os.environ.get('EXTRA_CHECKS', '1') != '0':
         cflags += ' -fno-delete-null-pointer-checks'
         cflags += ' -Werror=implicit-function-declaration'
+        cflags += ' -fstack-clash-protection'
+        cflags += ' -fstack-protector-strong'
 
     windows_build_type = build_dirs.windows_build_type()
     so_version = get_so_version( build_dirs)