mirror of https://github.com/python/cpython
gh-96269: Fix build dependency on AIX (GH-96304)
This commit is contained in:
parent
0319cd6825
commit
8c1dbad36f
|
@ -2522,6 +2522,8 @@ Python/thread.o: @THREADHEADERS@ $(srcdir)/Python/condvar.h
|
|||
##########################################################################
|
||||
# Module dependencies and platform-specific files
|
||||
|
||||
MODULE_DEPS=$(PYTHON_HEADERS) Modules/config.c $(EXPORTSYMS)
|
||||
|
||||
MODULE_CMATH_DEPS=$(srcdir)/Modules/_math.h
|
||||
MODULE_MATH_DEPS=$(srcdir)/Modules/_math.h
|
||||
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)";;
|
||||
esac
|
||||
# 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
|
||||
done
|
||||
case $doconfig in
|
||||
|
|
Loading…
Reference in New Issue