comparison pipcl.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
1768 if optimise: 1768 if optimise:
1769 general_flags += ' -O2 -DNDEBUG' 1769 general_flags += ' -O2 -DNDEBUG'
1770 if os.environ.get('EXTRA_CHECKS', '1') != '0': 1770 if os.environ.get('EXTRA_CHECKS', '1') != '0':
1771 general_flags += ' -fno-delete-null-pointer-checks' 1771 general_flags += ' -fno-delete-null-pointer-checks'
1772 general_flags += ' -Werror=implicit-function-declaration' 1772 general_flags += ' -Werror=implicit-function-declaration'
1773 general_flags += ' -fstack-clash-protection'
1774 general_flags += ' -fstack-protector-strong'
1773 1775
1774 py_limited_api3 = f'-DPy_LIMITED_API={py_limited_api2}' if py_limited_api2 else '' 1776 py_limited_api3 = f'-DPy_LIMITED_API={py_limited_api2}' if py_limited_api2 else ''
1775 1777
1776 if darwin(): 1778 if darwin():
1777 # MacOS's linker does not like `-z origin`. 1779 # MacOS's linker does not like `-z origin`.