diff options
author | Christian Heimes <christian@python.org> | 2022-06-29 13:44:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-29 13:44:14 (GMT) |
commit | 6485c3c7267eeb4095530af474c43f1244cb492b (patch) | |
tree | 2dd3e4b008e4fd8f95e3237dee78cec85492c823 /Makefile.pre.in | |
parent | 655b3aa4c8889a46e44b449cec16c85704a5e274 (diff) | |
download | cpython-6485c3c7267eeb4095530af474c43f1244cb492b.zip cpython-6485c3c7267eeb4095530af474c43f1244cb492b.tar.gz cpython-6485c3c7267eeb4095530af474c43f1244cb492b.tar.bz2 |
gh-94404: Use module CFLAGS before PY_STDMODULE_CFLAGS (GH-94413)
``PY_STDMODULE_CFLAGS`` may contain include directories with system
headers. This can break compiling with built-in libmpdec.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r-- | Makefile.pre.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index 3601d8a..14e7f60 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -829,7 +829,7 @@ python.worker.js: $(srcdir)/Tools/wasm/python.worker.js ########################################################################## # Build static libmpdec.a -LIBMPDEC_CFLAGS=$(PY_STDMODULE_CFLAGS) $(CCSHARED) @LIBMPDEC_CFLAGS@ +LIBMPDEC_CFLAGS=@LIBMPDEC_CFLAGS@ $(PY_STDMODULE_CFLAGS) $(CCSHARED) # for setup.py DECIMAL_CFLAGS=@LIBMPDEC_CFLAGS@ @@ -887,7 +887,7 @@ $(LIBMPDEC_A): $(LIBMPDEC_OBJS) ########################################################################## # Build static libexpat.a -LIBEXPAT_CFLAGS=$(PY_STDMODULE_CFLAGS) $(CCSHARED) @LIBEXPAT_CFLAGS@ +LIBEXPAT_CFLAGS=@LIBEXPAT_CFLAGS@ $(PY_STDMODULE_CFLAGS) $(CCSHARED) # for setup.py EXPAT_CFLAGS=@LIBEXPAT_CFLAGS@ |