comparison 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
comparison
equal deleted inserted replaced
32:72c1b70d4f5c 33:c4daa0c83d64
1542 dir_so_flags = os.path.basename( build_dirs.dir_so).split( '-') 1542 dir_so_flags = os.path.basename( build_dirs.dir_so).split( '-')
1543 cflags = os.environ.get('XCXXFLAGS', '') 1543 cflags = os.environ.get('XCXXFLAGS', '')
1544 if os.environ.get('EXTRA_CHECKS', '1') != '0': 1544 if os.environ.get('EXTRA_CHECKS', '1') != '0':
1545 cflags += ' -fno-delete-null-pointer-checks' 1545 cflags += ' -fno-delete-null-pointer-checks'
1546 cflags += ' -Werror=implicit-function-declaration' 1546 cflags += ' -Werror=implicit-function-declaration'
1547 cflags += ' -fstack-clash-protection'
1548 cflags += ' -fstack-protector-strong'
1547 1549
1548 windows_build_type = build_dirs.windows_build_type() 1550 windows_build_type = build_dirs.windows_build_type()
1549 so_version = get_so_version( build_dirs) 1551 so_version = get_so_version( build_dirs)
1550 1552
1551 for action in actions: 1553 for action in actions: