diff options
author | Leno Hou <lenohou@gmail.com> | 2016-06-28 13:14:38 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2016-06-28 13:14:38 -0400 |
commit | 5e83df7ed85e6b0db3e7fe0de46f1ee33635540b (patch) | |
tree | 98f0ff3ddaa0e9f7022a96d0f068bf03d9625cdb /sys-devel | |
parent | sys-devel/libtool: copy from tree (diff) | |
download | ppc64le-5e83df7ed85e6b0db3e7fe0de46f1ee33635540b.tar.gz ppc64le-5e83df7ed85e6b0db3e7fe0de46f1ee33635540b.tar.bz2 ppc64le-5e83df7ed85e6b0db3e7fe0de46f1ee33635540b.zip |
sys-devel/libtool: add m4/libtool.m4 patch for ppc64le #581314
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/libtool/files/libtool-2.4.6-libtool-m4-for-ppc64le.patch | 41 | ||||
-rw-r--r-- | sys-devel/libtool/libtool-2.4.6-r1.ebuild | 1 | ||||
-rw-r--r-- | sys-devel/libtool/libtool-2.4.6-r2.ebuild | 1 | ||||
-rw-r--r-- | sys-devel/libtool/libtool-2.4.6.ebuild | 1 |
4 files changed, 44 insertions, 0 deletions
diff --git a/sys-devel/libtool/files/libtool-2.4.6-libtool-m4-for-ppc64le.patch b/sys-devel/libtool/files/libtool-2.4.6-libtool-m4-for-ppc64le.patch new file mode 100644 index 0000000..946c8c7 --- /dev/null +++ b/sys-devel/libtool/files/libtool-2.4.6-libtool-m4-for-ppc64le.patch @@ -0,0 +1,41 @@ +From a08fc6407e6bead83024668227b91556de7292eb Mon Sep 17 00:00:00 2001 +From: Leno Hou <lenohou@gmail.com> +Date: Sat, 14 May 2016 14:56:57 +0000 +Subject: [PATCH] m4/libtool.m4: Fix LD parameters with ppc64 & ppc64le + platform + +For v2.4.6 +Reference Bug: +Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=581314 +GNU Bug: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23348 + +* m4/libtool (LD=elf64lppc): add recognise definition with +CHOST=powerpc64le-unknown-linux-gnu on ppc64le platform and +CHOST=powerpc64-unknown-linux-gnu on ppc64 platform. This +patch sets =elf64lppc on ppc64le and =elf64ppc on ppc64. + +Signed-off-by: Leno Hou <lenohou@gmail.com> +--- + m4/libtool.m4 | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/m4/libtool.m4 b/m4/libtool.m4 +index a3bc337..91b2e01 100644 +--- a/m4/libtool.m4 ++++ b/m4/libtool.m4 +@@ -1417,10 +1417,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; +- powerpcle-*linux*) ++ powerpcle-*linux*|powerpc64le-*linux*) + LD="${LD-ld} -m elf64lppc" + ;; +- powerpc-*linux*) ++ powerpc-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*|s390*-*tpf*) +-- +2.7.3 + diff --git a/sys-devel/libtool/libtool-2.4.6-r1.ebuild b/sys-devel/libtool/libtool-2.4.6-r1.ebuild index 677db33..2038ff0 100644 --- a/sys-devel/libtool/libtool-2.4.6-r1.ebuild +++ b/sys-devel/libtool/libtool-2.4.6-r1.ebuild @@ -48,6 +48,7 @@ src_prepare() { epatch "${FILESDIR}"/${PN}-2.4.3-use-linux-version-in-fbsd.patch #109105 epatch "${FILESDIR}"/${P}-fuse-ld.patch + epatch "${FILESDIR}"/${PN}-2.4.6-libtool-m4-for-ppc64le.patch #581314 pushd libltdl >/dev/null AT_NOELIBTOOLIZE=yes eautoreconf popd >/dev/null diff --git a/sys-devel/libtool/libtool-2.4.6-r2.ebuild b/sys-devel/libtool/libtool-2.4.6-r2.ebuild index 7e8b7ef..528ce85 100644 --- a/sys-devel/libtool/libtool-2.4.6-r2.ebuild +++ b/sys-devel/libtool/libtool-2.4.6-r2.ebuild @@ -53,6 +53,7 @@ src_prepare() { epatch "${FILESDIR}"/${P}-libtoolize-slow.patch epatch "${FILESDIR}"/${P}-libtoolize-delay-help.patch epatch "${FILESDIR}"/${P}-sed-quote-speedup.patch #542252 + epatch "${FILESDIR}"/${PN}-2.4.6-libtool-m4-for-ppc64le.patch #581314 pushd libltdl >/dev/null AT_NOELIBTOOLIZE=yes eautoreconf popd >/dev/null diff --git a/sys-devel/libtool/libtool-2.4.6.ebuild b/sys-devel/libtool/libtool-2.4.6.ebuild index 71a9b47..e7eeaed 100644 --- a/sys-devel/libtool/libtool-2.4.6.ebuild +++ b/sys-devel/libtool/libtool-2.4.6.ebuild @@ -47,6 +47,7 @@ src_prepare() { use vanilla && return 0 epatch "${FILESDIR}"/${PN}-2.4.3-use-linux-version-in-fbsd.patch #109105 + epatch "${FILESDIR}"/${PN}-2.4.6-libtool-m4-for-ppc64le.patch #581314 pushd libltdl >/dev/null AT_NOELIBTOOLIZE=yes eautoreconf popd >/dev/null |