From: Jan Palus Date: Sat, 2 May 2020 11:02:01 +0000 (+0200) Subject: add support for aarch64 X-Git-Tag: auto/th/python3-3.8.3-1~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fpython3.git;a=commitdiff_plain;h=6c328c9 add support for aarch64 --- 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@PY_VER@/config-@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)