comparison mupdf-source/scripts/wrap/__main__.py @ 31:baeb8bdeff3a

Fortify sources using _FORTIFY_SOURCE=3 and also apply -fno-delete-null-pointer-checks. See: https://github.com/ossf/wg-best-practices-os-developers/issues/659.
author Franz Glasner <fzglas.hg@dom66.de>
date Sun, 21 Sep 2025 13:11:30 +0200
parents 59f1bd90b2a0
children 72c1b70d4f5c
comparison
equal deleted inserted replaced
30:fc4555a3097b 31:baeb8bdeff3a
1539 if actions == 'all': 1539 if actions == 'all':
1540 actions = '0123' if state.state_.windows else 'm0123' 1540 actions = '0123' if state.state_.windows else 'm0123'
1541 1541
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':
1545 cflags += ' -fno-delete-null-pointer-checks'
1544 1546
1545 windows_build_type = build_dirs.windows_build_type() 1547 windows_build_type = build_dirs.windows_build_type()
1546 so_version = get_so_version( build_dirs) 1548 so_version = get_so_version( build_dirs)
1547 1549
1548 for action in actions: 1550 for action in actions: