summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2012-09-07 00:26:26 (GMT)
committerChristian Heimes <christian@cheimes.de>2012-09-07 00:26:26 (GMT)
commit4e2514031afe4ee2d9ea619d09150ccd77e61f3c (patch)
tree6aaec61cc894f1b694458961eade75b234749ae4 /Makefile.pre.in
parent693320add499820e66a442f3a68f5317cb44d07a (diff)
parent5f381210c464b044b5d1d931db08d68ce04038e4 (diff)
downloadcpython-4e2514031afe4ee2d9ea619d09150ccd77e61f3c.zip
cpython-4e2514031afe4ee2d9ea619d09150ccd77e61f3c.tar.gz
cpython-4e2514031afe4ee2d9ea619d09150ccd77e61f3c.tar.bz2
Fix for fcc629208842
BSD's make doesn't support some of the features.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in16
1 files changed, 7 insertions, 9 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index aa091fb..cbc1f9e 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -202,14 +202,6 @@ HOST_GNU_TYPE= @host@
PROFILE_TASK= $(srcdir)/Tools/pybench/pybench.py -n 2 --with-gc --with-syscheck
#PROFILE_TASK= $(srcdir)/Lib/test/regrtest.py
-# Find the silent flag in MAKEFLAGS. The flags are sorted and normalized
-# by GNU make. The 's' flag is always in the first word.
-ifneq (,$(findstring s,$(word 1,$(MAKEFLAGS))))
- QUIET=-q
-else
- QUIET=
-endif
-
# === Definitions added by makesetup ===
@@ -482,9 +474,15 @@ $(SYSCONFIGDATA): $(BUILDPYTHON)
$(RUNSHARED) $(PYTHON_FOR_BUILD) -S -m sysconfig --generate-posix-vars
# Build the shared modules
+# MAKEFLAGS are sorted and normalized. Under GNU make the 's' for
+# -s, --silent or --quiet is always the first char.
sharedmods: $(BUILDPYTHON) $(SYSCONFIGDATA)
+ @case "$$MAKEFLAGS" in \
+ s*) quiet="-q";; \
+ *) quiet="";; \
+ esac; \
$(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' \
- $(PYTHON_FOR_BUILD) $(srcdir)/setup.py $(QUIET) build
+ $(PYTHON_FOR_BUILD) $(srcdir)/setup.py $$quiet build
# Build static library
# avoid long command lines, same as LIBRARY_OBJS