mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
gh-96269: Fix build dependency on AIX (GH-96304)
This commit is contained in:
parent
0319cd6825
commit
8c1dbad36f
3 changed files with 6 additions and 1 deletions
|
|
@ -2522,6 +2522,8 @@ Python/thread.o: @THREADHEADERS@ $(srcdir)/Python/condvar.h
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# Module dependencies and platform-specific files
|
# Module dependencies and platform-specific files
|
||||||
|
|
||||||
|
MODULE_DEPS=$(PYTHON_HEADERS) Modules/config.c $(EXPORTSYMS)
|
||||||
|
|
||||||
MODULE_CMATH_DEPS=$(srcdir)/Modules/_math.h
|
MODULE_CMATH_DEPS=$(srcdir)/Modules/_math.h
|
||||||
MODULE_MATH_DEPS=$(srcdir)/Modules/_math.h
|
MODULE_MATH_DEPS=$(srcdir)/Modules/_math.h
|
||||||
MODULE_PYEXPAT_DEPS=$(LIBEXPAT_HEADERS) @LIBEXPAT_INTERNAL@
|
MODULE_PYEXPAT_DEPS=$(LIBEXPAT_HEADERS) @LIBEXPAT_INTERNAL@
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
Shared module targets now depend on new ``MODULE_DEPS`` variable, which
|
||||||
|
includes ``EXPORTSYMS``. This fixes a build order issue on unsupported AIX
|
||||||
|
platform.
|
||||||
|
|
@ -267,7 +267,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
|
||||||
cc="$cc $cpps \$(PY_BUILTIN_MODULE_CFLAGS)";;
|
cc="$cc $cpps \$(PY_BUILTIN_MODULE_CFLAGS)";;
|
||||||
esac
|
esac
|
||||||
# force rebuild when header file or module build flavor (static/shared) is changed
|
# force rebuild when header file or module build flavor (static/shared) is changed
|
||||||
rule="$obj: $src \$(MODULE_${mods_upper}_DEPS) \$(PYTHON_HEADERS) Modules/config.c; $cc -c $src -o $obj"
|
rule="$obj: $src \$(MODULE_${mods_upper}_DEPS) \$(MODULE_DEPS); $cc -c $src -o $obj"
|
||||||
echo "$rule" >>$rulesf
|
echo "$rule" >>$rulesf
|
||||||
done
|
done
|
||||||
case $doconfig in
|
case $doconfig in
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue