Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python: avoid conflicting _FORTIFY_SOURCE values
The compile flags are combined from python's build config (sysconfig module) and CFLAGS environment. If both define the _FORTIFY_SOURCE but to different values, the build will fail. This is the case on Arch, where Python's sysconfig has -D_FORTIFY_SOURCE=2, while Arch's makepkg.conf has -D_FORTIFY_SOURCE=3. Resolve the config by undefining _FORTIFY_SOURCE first, and use the value from the CFLAGS environment. Details: https://setuptools.pypa.io/en/latest/userguide/ext_modules.html Fixes QubesOS/qubes-core-agent-linux#496 (comment)
- Loading branch information