Gentoo Archives: gentoo-dev

From: Leno Hou <lenohou@×××××.com>
To: gentoo-dev@l.g.o, blueness@g.o, vapier@g.o
Cc: Leno Hou <lenohou@×××××.com>
Subject: [gentoo-dev][ppc64le][PATCH 02/12] libtool.eclass: elibtoolize: add ppc64le handling #580792
Date: Tue, 28 Jun 2016 14:33:04
Message-Id: 1467124291-13312-2-git-send-email-lenohou@gmail.com
In Reply to: [gentoo-dev][ppc64le][PATCH 01/12] sys-devel/libtool: add m4/libtool.m4 patch for ppc64le #581314 by Leno Hou
1 Signed-off-by: Leno Hou <lenohou@×××××.com>
2 ---
3 eclass/ELT-patches/ppc64le/2.4.2 | 26 ++++++++++++++++++++++++++
4 eclass/libtool.eclass | 6 +++++-
5 2 files changed, 31 insertions(+), 1 deletion(-)
6 create mode 100644 eclass/ELT-patches/ppc64le/2.4.2
7
8 diff --git a/eclass/ELT-patches/ppc64le/2.4.2 b/eclass/ELT-patches/ppc64le/2.4.2
9 new file mode 100644
10 index 0000000..d61f6c3
11 --- /dev/null
12 +++ b/eclass/ELT-patches/ppc64le/2.4.2
13 @@ -0,0 +1,26 @@
14 +--- m4/libtool.m4.orig 2016-04-21 16:50:01.118444710 +0000
15 ++++ m4/libtool.m4 2016-04-21 16:52:39.419906716 +0000
16 +@@ -1329,6 +1329,9 @@
17 + ppc64-*linux*|powerpc64-*linux*)
18 + LD="${LD-ld} -m elf32ppclinux"
19 + ;;
20 ++ ppc64le-*linux*|powerpc64le-*linux*)
21 ++ LD="${LD-ld} -m elf32lppclinux"
22 ++ ;;
23 + s390x-*linux*)
24 + LD="${LD-ld} -m elf_s390"
25 + ;;
26 +@@ -1345,9 +1348,12 @@
27 + x86_64-*linux*)
28 + LD="${LD-ld} -m elf_x86_64"
29 + ;;
30 +- ppc*-*linux*|powerpc*-*linux*)
31 ++ powerpc-*linux*|powerpc64-*linux*)
32 + LD="${LD-ld} -m elf64ppc"
33 + ;;
34 ++ powerpcle-*linux*|powerpc64le-*linux*)
35 ++ LD="${LD-ld} -m elf64lppc"
36 ++ ;;
37 + s390*-*linux*|s390*-*tpf*)
38 + LD="${LD-ld} -m elf64_s390"
39 + ;;
40 diff --git a/eclass/libtool.eclass b/eclass/libtool.eclass
41 index 47ef812..9f56c20 100644
42 --- a/eclass/libtool.eclass
43 +++ b/eclass/libtool.eclass
44 @@ -144,7 +144,7 @@ elibtoolize() {
45 local deptoremove=
46 local do_shallow="no"
47 local force="false"
48 - local elt_patches="install-sh ltmain portage relink max_cmd_len sed test tmp cross as-needed target-nm"
49 + local elt_patches="install-sh ltmain portage relink max_cmd_len sed test tmp cross as-needed target-nm ppc64le"
50
51 for x in "$@" ; do
52 case ${x} in
53 @@ -417,6 +417,10 @@ elibtoolize() {
54 ELT_walk_patches "${d}/configure" "${p}"
55 ret=$?
56 ;;
57 + ppc64le)
58 + ELT_walk_patches "${d}/configure" "${p}"
59 + ret=$?
60 + ;;
61 *)
62 # ltmain.sh patches are applied above
63 ;;
64 --
65 2.7.3