1 |
commit: c79fb8d14603bcbf39a94223c57ef13cd8f3cba9 |
2 |
Author: Leno Hou <lenohou <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Jun 28 17:22:01 2016 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 28 17:22:01 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/ppc64le.git/commit/?id=c79fb8d1 |
7 |
|
8 |
libtool.eclass: elibtoolize: add ppc64le handling #580792 |
9 |
|
10 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
11 |
|
12 |
eclass/ELT-patches/ppc64le/2.4.2 | 26 ++++++++++++++++++++++++++ |
13 |
eclass/libtool.eclass | 6 +++++- |
14 |
2 files changed, 31 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/eclass/ELT-patches/ppc64le/2.4.2 b/eclass/ELT-patches/ppc64le/2.4.2 |
17 |
new file mode 100644 |
18 |
index 0000000..d61f6c3 |
19 |
--- /dev/null |
20 |
+++ b/eclass/ELT-patches/ppc64le/2.4.2 |
21 |
@@ -0,0 +1,26 @@ |
22 |
+--- m4/libtool.m4.orig 2016-04-21 16:50:01.118444710 +0000 |
23 |
++++ m4/libtool.m4 2016-04-21 16:52:39.419906716 +0000 |
24 |
+@@ -1329,6 +1329,9 @@ |
25 |
+ ppc64-*linux*|powerpc64-*linux*) |
26 |
+ LD="${LD-ld} -m elf32ppclinux" |
27 |
+ ;; |
28 |
++ ppc64le-*linux*|powerpc64le-*linux*) |
29 |
++ LD="${LD-ld} -m elf32lppclinux" |
30 |
++ ;; |
31 |
+ s390x-*linux*) |
32 |
+ LD="${LD-ld} -m elf_s390" |
33 |
+ ;; |
34 |
+@@ -1345,9 +1348,12 @@ |
35 |
+ x86_64-*linux*) |
36 |
+ LD="${LD-ld} -m elf_x86_64" |
37 |
+ ;; |
38 |
+- ppc*-*linux*|powerpc*-*linux*) |
39 |
++ powerpc-*linux*|powerpc64-*linux*) |
40 |
+ LD="${LD-ld} -m elf64ppc" |
41 |
+ ;; |
42 |
++ powerpcle-*linux*|powerpc64le-*linux*) |
43 |
++ LD="${LD-ld} -m elf64lppc" |
44 |
++ ;; |
45 |
+ s390*-*linux*|s390*-*tpf*) |
46 |
+ LD="${LD-ld} -m elf64_s390" |
47 |
+ ;; |
48 |
|
49 |
diff --git a/eclass/libtool.eclass b/eclass/libtool.eclass |
50 |
index 47ef812..9f56c20 100644 |
51 |
--- a/eclass/libtool.eclass |
52 |
+++ b/eclass/libtool.eclass |
53 |
@@ -144,7 +144,7 @@ elibtoolize() { |
54 |
local deptoremove= |
55 |
local do_shallow="no" |
56 |
local force="false" |
57 |
- local elt_patches="install-sh ltmain portage relink max_cmd_len sed test tmp cross as-needed target-nm" |
58 |
+ local elt_patches="install-sh ltmain portage relink max_cmd_len sed test tmp cross as-needed target-nm ppc64le" |
59 |
|
60 |
for x in "$@" ; do |
61 |
case ${x} in |
62 |
@@ -417,6 +417,10 @@ elibtoolize() { |
63 |
ELT_walk_patches "${d}/configure" "${p}" |
64 |
ret=$? |
65 |
;; |
66 |
+ ppc64le) |
67 |
+ ELT_walk_patches "${d}/configure" "${p}" |
68 |
+ ret=$? |
69 |
+ ;; |
70 |
*) |
71 |
# ltmain.sh patches are applied above |
72 |
;; |