diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-02-03 05:19:44 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-02-03 05:19:44 (GMT) |
commit | 63d096ddabc430ede485bc5fb8ce11bb78cb8afa (patch) | |
tree | 0dc97e87fa4a31a976ab7c43f414fafe9ec3d14c /Makefile.pre.in | |
parent | bc85e35fe66edf18c7998d98bfa5682a9cbb0269 (diff) | |
download | cpython-63d096ddabc430ede485bc5fb8ce11bb78cb8afa.zip cpython-63d096ddabc430ede485bc5fb8ce11bb78cb8afa.tar.gz cpython-63d096ddabc430ede485bc5fb8ce11bb78cb8afa.tar.bz2 |
Issue #24421: Compile _math.c separately to avoid race condition
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r-- | Makefile.pre.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index 91fa06e..9b4ab8d 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -586,11 +586,15 @@ pybuilddir.txt: $(BUILDPYTHON) exit 1 ; \ fi +# This is shared by the math and cmath modules +Modules/_math.o: Modules/_math.c Modules/_math.h + $(CC) -c $(CCSHARED) $(PY_CORE_CFLAGS) -o $@ $< + # Build the shared modules # Under GNU make, MAKEFLAGS are sorted and normalized; the 's' for # -s, --silent or --quiet is always the first char. # Under BSD make, MAKEFLAGS might be " -s -v x=y". -sharedmods: $(BUILDPYTHON) pybuilddir.txt +sharedmods: $(BUILDPYTHON) pybuilddir.txt Modules/_math.o @case "$$MAKEFLAGS" in \ *\ -s*|s*) quiet="-q";; \ *) quiet="";; \ |