diff options
author | CoprDistGit <infra@openeuler.org> | 2024-10-26 05:38:32 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-10-26 05:38:32 +0000 |
commit | 490d9f3217eb4c04a834d073e479765496ee90a9 (patch) | |
tree | 0b68b2139750553856dd9a42cd8a614b6d6ff493 /backport-aarch64-ilp32-support.patch | |
parent | 14b6cc6f2f3174b885ea1a6f97c55dd0d0d86f79 (diff) |
automatic import of perlopeneuler24.03_LTS
Diffstat (limited to 'backport-aarch64-ilp32-support.patch')
-rw-r--r-- | backport-aarch64-ilp32-support.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/backport-aarch64-ilp32-support.patch b/backport-aarch64-ilp32-support.patch new file mode 100644 index 0000000..4e14c91 --- /dev/null +++ b/backport-aarch64-ilp32-support.patch @@ -0,0 +1,45 @@ +From 55a0aab68d5ce90ce8bb7442ba61639c49e50c1d Mon Sep 17 00:00:00 2001 +From: root <root@localhost.localdomain> +Date: Mon, 21 Sep 2020 09:45:33 +0800 +Subject: [PATCH] aarch64 ilp32 support + +Conflict:NA +Reference:https://build.opensuse.org/package/view_file/devel:ARM:Factory:Contrib:ILP32/perl/aarch64-ilp32.patch?expand=1 + +--- + hints/linux.sh | 19 +++++++++++++++++++ + 1 file changed, 19 insertions(+) + +diff --git a/hints/linux.sh b/hints/linux.sh +index c749f0f..27322dc 100644 +--- a/hints/linux.sh ++++ b/hints/linux.sh +@@ -311,6 +311,25 @@ sparc*) + ;; + esac + ++case $archname in ++aarch64-linux) ++ cat >try.c <<'EOM' ++/* Test for ILP32 */ ++#include <stdlib.h> ++main() { ++ int ilp32 = 0; ++ #ifdef __ILP32__ ++ ilp32 = 1; ++ #endif ++ exit(!ilp32); ++} ++EOM ++ if ${cc:-gcc} $ccflags $ldflags try.c >/dev/null 2>&1 && $run ./a.out; then ++ archname=aarch64-ilp32-linux ++ fi ++ ;; ++esac ++ + # SuSE8.2 has /usr/lib/libndbm* which are ld scripts rather than + # true libraries. The scripts cause binding against static + # version of -lgdbm which is a bad idea. So if we have 'nm' +-- +2.27.0 + |