SHARE
TWEET

0001-package-python-use-system-ffi.patch

a guest Oct 24th, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. From d6215b9021482cc14bc0731a8ed23cd85b782cc6 Mon Sep 17 00:00:00 2001
  2. From: Petr Cvek <petrcvekcz@gmail.com>
  3. Date: Fri, 6 Sep 2019 12:25:45 +0200
  4. Subject: [PATCH 1/2] package/python: use system ffi
  5.  
  6. Python bundled libffi for the host will fail the build on aarch64.
  7. Use the host-libffi for the compilation.
  8.  
  9. Signed-off-by: Petr Cvek <petrcvekcz@gmail.com>
  10. ---
  11. package/python/python.mk | 5 +++--
  12.  1 file changed, 3 insertions(+), 2 deletions(-)
  13.  
  14. diff --git a/package/python/python.mk b/package/python/python.mk
  15. index d1e70a015a..564c5dc11d 100644
  16. --- a/package/python/python.mk
  17. +++ b/package/python/python.mk
  18. @@ -34,7 +34,8 @@ HOST_PYTHON_CONF_OPTS += \
  19.     --disable-bz2 \
  20.     --disable-ssl \
  21.     --disable-ossaudiodev \
  22. -   --disable-pyo-build
  23. +   --disable-pyo-build \
  24. +   --with-system-ffi
  25.  
  26.  # Make sure that LD_LIBRARY_PATH overrides -rpath.
  27.  # This is needed because libpython may be installed at the same time that
  28. @@ -56,7 +57,7 @@ HOST_PYTHON_MAKE = $(MAKE1)
  29.  
  30.  PYTHON_DEPENDENCIES = host-python libffi $(TARGET_NLS_DEPENDENCIES)
  31.  
  32. -HOST_PYTHON_DEPENDENCIES = host-expat host-zlib
  33. +HOST_PYTHON_DEPENDENCIES = host-expat host-zlib host-libffi
  34.  
  35.  PYTHON_INSTALL_STAGING = YES
  36.  
  37. --
  38. 2.23.0
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top