Re: overriding default compile flags when building python extensions
On Fri, 2019-05-03 at 19:49 +0800, Drew Parsons wrote:
> The first -g is the problem (in "-DNDEBUG -g -fwrapv -O2 -Wall"). The
> advice from the internet (stackoverflow) is exceedingly poor on this
> question, in most cases addressing how to add flags, not how to change
> the existing default flags. Alternatives like
> OPT="" python3 ./setup.py
> simply do not work.
Not sure about setup.py, but `-g0` (after `-g`) should also disable
debug information:
+---
| Level 0 produces no debug information at all. Thus, -g0 negates -g.
+---
Ansgar
Reply to: