summaryrefslogtreecommitdiff
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2010-06-26 22:29:06 +0000
committerBrett Cannon <bcannon@gmail.com>2010-06-26 22:29:06 +0000
commitc3753650e030cdf54542a46211fffdbb3477ccaa (patch)
treed32785d25737897f08467ee8ae7e7eadf5b4d281 /Makefile.pre.in
parentb8936f61b35f4cfa10b5838f1bfdf3b8cd0c0a1d (diff)
downloadcpython-c3753650e030cdf54542a46211fffdbb3477ccaa.tar.gz
Having CFLAGS come before OPT prevents silencing certain classes of warnings
from the fact that OPT contains -Wall be default. This is annoying when compilers like clang have thorough debugging information about things that Python does extensively (e.g. -Wunused-value for unused return values caused by a macro use).
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 69a3199189..2b36b87c37 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -59,7 +59,7 @@ MAKESETUP= $(srcdir)/Modules/makesetup
# Compiler options
OPT= @OPT@
BASECFLAGS= @BASECFLAGS@
-CFLAGS= $(BASECFLAGS) @CFLAGS@ $(OPT) $(EXTRA_CFLAGS)
+CFLAGS= $(BASECFLAGS) $(OPT) @CFLAGS@ $(EXTRA_CFLAGS)
# Both CPPFLAGS and LDFLAGS need to contain the shell's value for setup.py to
# be able to build extension modules using the directories specified in the
# environment variables