[issue15757] ./configure --with-pydebug on FreeBSD results in -O2 -pipe eventually ending up in CFLAGS.

Stefan Krah report at bugs.python.org
Wed Aug 22 09:47:24 CEST 2012


Stefan Krah added the comment:

> So, looks like FreeBSD's /usr/share/mk/sys.mk is to blame here.
> It unconditionally sets CFLAGS to `-O2 -pipe`.

I've been debugging this once, too. My conclusion was that if the OS is set up
that way, we shouldn't do anything about it in the Python source tree.

All important features of --with-pydebug should also work if -O0 is overridden
by -O2.

So I think that FreeBSD users who really want -O0 should change sys.mk
or set CFLAGS manually. For the buildbots it should not matter, except
that compile times are slower.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15757>
_______________________________________


More information about the Python-bugs-list mailing list