Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 1 | From baa3a232e64e9bf5ae945366efdb8088ccf9b828 Mon Sep 17 00:00:00 2001 |
| 2 | From: Ricardo Ribalda <ricardo@ribalda.com> |
| 3 | Date: Tue, 18 Nov 2014 03:35:33 -0500 |
| 4 | Subject: [PATCH] configure.ac: add CROSSPYTHONPATH into PYTHONPATH for |
| 5 | PYTHON_FOR_BUILD |
Brad Bishop | f3fd288 | 2019-06-21 08:06:37 -0400 | [diff] [blame] | 6 | |
| 7 | When building x86->x86 the system will try to execute .so and related items |
| 8 | from the default PYTHONPATH. This will fail if the target CPU contains |
| 9 | instructions that the host CPU does not have, add CROSSPYTHONPATH |
| 10 | into PYTHONPATH so we can prepend the list to find correct libs. |
| 11 | |
| 12 | Upstream-Status: Inappropriate [OE-Core integration specific] |
| 13 | |
| 14 | Credits-to: Mark Hatle <mark.hatle@windriver.com> |
| 15 | Credits-to: Jackie Huang <jackie.huang@windriver.com> |
| 16 | Signed-off-by: Ricardo Ribalda <ricardo@ribalda.com> |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 17 | |
| 18 | --- |
| 19 | configure.ac | 2 +- |
| 20 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 21 | |
Brad Bishop | f3fd288 | 2019-06-21 08:06:37 -0400 | [diff] [blame] | 22 | diff --git a/configure.ac b/configure.ac |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 23 | index d0db062..e5e3df8 100644 |
Brad Bishop | f3fd288 | 2019-06-21 08:06:37 -0400 | [diff] [blame] | 24 | --- a/configure.ac |
| 25 | +++ b/configure.ac |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 26 | @@ -83,7 +83,7 @@ if test "$cross_compiling" = yes; then |
Brad Bishop | f3fd288 | 2019-06-21 08:06:37 -0400 | [diff] [blame] | 27 | AC_MSG_ERROR([python$PACKAGE_VERSION interpreter not found]) |
| 28 | fi |
| 29 | AC_MSG_RESULT($interp) |
| 30 | - PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH) '$interp |
| 31 | + PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(CROSSPYTHONPATH):$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH) '$interp |
| 32 | fi |
| 33 | elif test "$cross_compiling" = maybe; then |
| 34 | AC_MSG_ERROR([Cross compiling required --host=HOST-TUPLE and --build=ARCH]) |