[packages/python] add support for aarch64
atler
atler at pld-linux.org
Sat May 2 01:55:19 CEST 2020
commit 3794a26368388d6e071e6fc3be7f9823bb507651
Author: Jan Palus <atler at pld-linux.org>
Date: Fri May 1 23:52:21 2020 +0000
add support for aarch64
pyconfig.h.in | 2 +-
python-multilib.patch | 4 ++--
python.spec | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/python.spec b/python.spec
index 0b014e2..bfcc734 100644
--- a/python.spec
+++ b/python.spec
@@ -779,7 +779,7 @@ rm -rf $RPM_BUILD_ROOT
# three modules below do not work on 64-bit architectures
# see Python README file for explanation
-%ifnarch alpha ia64 ppc64 sparc64 %{x8664}
+%ifnarch alpha ia64 ppc64 sparc64 %{x8664} aarch64
%attr(755,root,root) %{py_dyndir}/imageop.so
# sizeof(long) != sizeof(int), so dl module will not be built on 64-bit
# platforms
diff --git a/pyconfig.h.in b/pyconfig.h.in
index d422b4d..263dced 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/pyconfig.h"
#else
diff --git a/python-multilib.patch b/python-multilib.patch
index ebc34d5..1740783 100644
--- a/python-multilib.patch
+++ b/python-multilib.patch
@@ -220,7 +220,7 @@
#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
@@ -314,7 +314,7 @@
+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/python.git/commitdiff/bdc09896fa59db78a3e4c7172109ce34f4bf3260
More information about the pld-cvs-commit
mailing list