summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorMatthias Klose <doko@ubuntu.com>2012-08-28 17:00:01 (GMT)
committerMatthias Klose <doko@ubuntu.com>2012-08-28 17:00:01 (GMT)
commit2d652bacf47a5548b7cc38d7664c6571d36f7c68 (patch)
treec2deaef33cecbb1246ef069a2c92694f46aef511 /Makefile.pre.in
parenta0578e94a444bf5019c9b1dcad562211895590bc (diff)
parent25b10a28f51bc6125946c5fad0c3cfad38227928 (diff)
downloadcpython-2d652bacf47a5548b7cc38d7664c6571d36f7c68.zip
cpython-2d652bacf47a5548b7cc38d7664c6571d36f7c68.tar.gz
cpython-2d652bacf47a5548b7cc38d7664c6571d36f7c68.tar.bz2
- Issue #15591: Fix parsing MAKEFLAGS in the sharedmods target.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index f715711..9f5e2a1 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -475,7 +475,12 @@ $(SYSCONFIGDATA): $(BUILDPYTHON)
# Build the shared modules
sharedmods: $(BUILDPYTHON) $(SYSCONFIGDATA)
- case $$MAKEFLAGS in *s*) quiet=-q; esac; \
+ if which getopt >/dev/null; then \
+ mflags=`getopt s $$MAKEFLAGS 2>/dev/null | sed 's/ --.*/ /'`; \
+ else \
+ mflags=" $$MAKEFLAGS "; \
+ fi; \
+ case $$mflags in "* -s *") quiet=-q; esac; \
$(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' \
$(PYTHON_FOR_BUILD) $(srcdir)/setup.py $$quiet build