Trent Nelson added the comment: So, looks like FreeBSD's /usr/share/mk/sys.mk is to blame here. It unconditionally sets CFLAGS to `-O2 -pipe`.
[trent@hydrogen/ttypts/1(~s/cpython)%] uname -a FreeBSD hydrogen.snakebite.net 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0 r0: Mon Jul 16 06:28:19 UTC 2012 r...@hydrogen.snakebite.net:/usr/obj/src/freebsd/9/r238513m/sys/AMD64 amd64 [trent@hydrogen/ttypts/1(~s/cpython)%] grep -A3 'bsd_make_test' Makefile bsd_make_test: @echo "CFLAGS: $(CFLAGS)" @echo "EXTRA_CFLAGS: $(EXTRA_CFLAGS)" [trent@hydrogen/ttypts/1(~s/cpython)%] make bsd_make_test CFLAGS: -O2 -pipe EXTRA_CFLAGS: [trent@hydrogen/ttypts/1(~s/cpython)%] make CFLAGS= bsd_make_test CFLAGS: EXTRA_CFLAGS: I can think of a few ways to work around this... some better than others. 1. Change the FreeBSD buildbots to always invoke make via `make CFLAGS=`. 2. Hack configure.* to automatically invoke make via `make CFLAGS=` when `-O2 -pipe` crops up in a `--with-pydebug` build. Some of the less desirable ones: 3. Switch FreeBSD to gmake. 4. Patch FreeBSD make so that it is 'debug aware' and stops appending `-O2` everywhere. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15757> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com