[issue3290] python-config --cflags includes irrelevant flags
Matthias Braun
report at bugs.python.org
Tue Mar 5 01:20:38 CET 2013
Matthias Braun added the comment:
I hacked up a proof-of-concept patch which filters out the most annoying flags (warnings, -Ox and -DNDEBUG flags).
(Though IMO the only really robust solution would be not having code but just declarations in the public headers, so --includes is enough. In my personal project I ended up to just use --includes and manually make sure that I don't use any of the code in the headers, but just the declarations).
----------
keywords: +patch
nosy: +Matthias.Braun
Added file: http://bugs.python.org/file29310/python-config-filter-cflags.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3290>
_______________________________________
More information about the Python-bugs-list
mailing list