File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -316,6 +316,9 @@ Tests
316316Build
317317-----
318318
319+ - Cross compiling needs host and build settings. configure no longer
320+ creates a broken PYTHON_FOR_BUILD variable when --build is missing.
321+
319322- Fix cross compiling issue in setup.py, ensure that lib_dirs and inc_dirs are
320323 defined in cross compiling mode, too.
321324
Original file line number Diff line number Diff line change @@ -2943,6 +2943,8 @@ $as_echo_n "checking for python interpreter for cross build... " >&6; }
29432943$as_echo " $interp " >&6 ; }
29442944 PYTHON_FOR_BUILD=" _PYTHON_PROJECT_BASE=$srcdir " ' _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(srcdir)/Lib:$(srcdir)/Lib/plat-$(MACHDEP) ' $interp
29452945 fi
2946+ elif test " $cross_compiling " = maybe; then
2947+ as_fn_error $? " Cross compiling required --host=HOST-TUPLE and --build=ARCH" " $LINENO " 5
29462948else
29472949 PYTHON_FOR_BUILD=' ./$(BUILDPYTHON) -E'
29482950fi
Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ if test "$cross_compiling" = yes; then
6767 AC_MSG_RESULT ( $interp )
6868 PYTHON_FOR_BUILD="_PYTHON_PROJECT_BASE=$srcdir"' _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(srcdir)/Lib:$(srcdir)/Lib/plat-$(MACHDEP) '$interp
6969 fi
70+ elif test "$cross_compiling" = maybe; then
71+ AC_MSG_ERROR ( [ Cross compiling required --host=HOST-TUPLE and --build=ARCH] )
7072else
7173 PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E'
7274fi
You can’t perform that action at this time.
0 commit comments