[packages/python3] add support for aarch64

atler atler at pld-linux.org
Sat May 2 13:03:02 CEST 2020


commit 6c328c96f888f1ddc39170c26505bfab48ad3dbc
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat May 2 13:02:01 2020 +0200

    add support for aarch64

 pyconfig.h.in          | 2 +-
 python3-multilib.patch | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/pyconfig.h.in b/pyconfig.h.in
index 0107653..4de8ae0 100644
--- a/pyconfig.h.in
+++ b/pyconfig.h.in
@@ -1,5 +1,5 @@
 #ifndef Py_PYCONFIG_H
-#if defined(__x86_64__) || (defined(__sparc__) && defined(__arch64__)) || defined(__powerpc64__) || defined(__s390x__)
+#if defined(__x86_64__) || defined(__aarch64__) || (defined(__sparc__) && defined(__arch64__)) || defined(__powerpc64__) || defined(__s390x__)
 #if defined(__ILP32__)
 #include "@PREFIX@/libx32/python at PY_VER@/config- at PY_ABI@/pyconfig.h"
 #else
diff --git a/python3-multilib.patch b/python3-multilib.patch
index b546e49..96fafe6 100644
--- a/python3-multilib.patch
+++ b/python3-multilib.patch
@@ -202,7 +202,7 @@ diff -dur Python-3.5.0.orig/Modules/getpath.c Python-3.5.0/Modules/getpath.c
  #endif
  
 +#ifndef LIB_PYTHON
-+#if defined(__x86_64__) || (defined(__sparc__) && defined(__arch64__)) || defined(__powerpc64__) || defined(__s390x__)
++#if defined(__x86_64__) || defined(__aarch64__) || (defined(__sparc__) && defined(__arch64__)) || defined(__powerpc64__) || defined(__s390x__)
 +#if defined(__ILP32__)
 +#define LIB_PYTHON "libx32/python"
 +#else
@@ -308,7 +308,7 @@ diff -dur Python-3.5.0.orig/configure.ac Python-3.5.0/configure.ac
 +esac
 +
 +case $ARCH:$python_cv_cc_64bit_output in
-+powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
++powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes | aarch64:yes)
 +  LIB="lib64"
 +  ;;
 +x86_64:no)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3.git/commitdiff/6c328c96f888f1ddc39170c26505bfab48ad3dbc



More information about the pld-cvs-commit mailing list