diff options
author | Matthias Klose <doko@ubuntu.com> | 2012-08-28 17:00:01 (GMT) |
---|---|---|
committer | Matthias Klose <doko@ubuntu.com> | 2012-08-28 17:00:01 (GMT) |
commit | 2d652bacf47a5548b7cc38d7664c6571d36f7c68 (patch) | |
tree | c2deaef33cecbb1246ef069a2c92694f46aef511 | |
parent | a0578e94a444bf5019c9b1dcad562211895590bc (diff) | |
parent | 25b10a28f51bc6125946c5fad0c3cfad38227928 (diff) | |
download | cpython-2d652bacf47a5548b7cc38d7664c6571d36f7c68.zip cpython-2d652bacf47a5548b7cc38d7664c6571d36f7c68.tar.gz cpython-2d652bacf47a5548b7cc38d7664c6571d36f7c68.tar.bz2 |
- Issue #15591: Fix parsing MAKEFLAGS in the sharedmods target.
-rw-r--r-- | Makefile.pre.in | 7 |
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 |