Mercurial > hgrepos > Python2 > PyMuPDF
comparison pipcl.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 | dcabf2733f0f |
| children | 72c1b70d4f5c |
comparison
equal
deleted
inserted
replaced
| 30:fc4555a3097b | 31:baeb8bdeff3a |
|---|---|
| 1765 general_flags = '' | 1765 general_flags = '' |
| 1766 if debug: | 1766 if debug: |
| 1767 general_flags += ' -g' | 1767 general_flags += ' -g' |
| 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': | |
| 1771 general_flags += ' -fno-delete-null-pointer-checks' | |
| 1770 | 1772 |
| 1771 py_limited_api3 = f'-DPy_LIMITED_API={py_limited_api2}' if py_limited_api2 else '' | 1773 py_limited_api3 = f'-DPy_LIMITED_API={py_limited_api2}' if py_limited_api2 else '' |
| 1772 | 1774 |
| 1773 if darwin(): | 1775 if darwin(): |
| 1774 # MacOS's linker does not like `-z origin`. | 1776 # MacOS's linker does not like `-z origin`. |
