mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #28444: Fix missing extensions modules when cross compiling.
This commit is contained in:
parent
43ab355e0e
commit
84968b74c8
4 changed files with 27 additions and 22 deletions
|
@ -29,6 +29,7 @@
|
|||
#
|
||||
# Copying Makefile.pre to Makefile:
|
||||
# - insert an identifying comment at the start
|
||||
# - replace _MODNAMES_ by the list of modules from Setup
|
||||
# - replace _MODOBJS_ by the list of objects from Setup (except for
|
||||
# Setup files after a -n option)
|
||||
# - replace _MODLIBS_ by the list of libraries from Setup
|
||||
|
@ -110,6 +111,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
|
|||
# Rules appended by makedepend
|
||||
" >$rulesf
|
||||
DEFS=
|
||||
NAMES=
|
||||
MODS=
|
||||
SHAREDMODS=
|
||||
OBJS=
|
||||
|
@ -181,7 +183,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
|
|||
*.*) echo 1>&2 "bad word $arg in $line"
|
||||
exit 1;;
|
||||
-u) skip=libs; libs="$libs -u";;
|
||||
[a-zA-Z_]*) mods="$mods $arg";;
|
||||
[a-zA-Z_]*) NAMES="$NAMES $arg"; mods="$mods $arg";;
|
||||
*) echo 1>&2 "bad word $arg in $line"
|
||||
exit 1;;
|
||||
esac
|
||||
|
@ -280,6 +282,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
|
|||
echo "1i\\" >$sedf
|
||||
str="# Generated automatically from $makepre by makesetup."
|
||||
echo "$str" >>$sedf
|
||||
echo "s%_MODNAMES_%$NAMES%" >>$sedf
|
||||
echo "s%_MODOBJS_%$OBJS%" >>$sedf
|
||||
echo "s%_MODLIBS_%$LIBS%" >>$sedf
|
||||
echo "/Definitions added by makesetup/a$NL$NL$DEFS" >>$sedf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue