From 9e51824dd4ef9cad7de354c0f62c32608cc0e245 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Tue, 15 Oct 2013 08:38:52 +0200 Subject: [PATCH] m4: add support for powerpc*le-linux to libtool.m4 Version: 2.4.2-20 --- libtool-2.4.2-powerpcle-linux.patch | 37 +++++++++++++++++++++++++++++ libtool.spec | 11 ++++++++- 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 libtool-2.4.2-powerpcle-linux.patch diff --git a/libtool-2.4.2-powerpcle-linux.patch b/libtool-2.4.2-powerpcle-linux.patch new file mode 100644 index 0000000..3455356 --- /dev/null +++ b/libtool-2.4.2-powerpcle-linux.patch @@ -0,0 +1,37 @@ +diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4 +index 56666f0..126202f 100644 +--- a/libltdl/m4/libtool.m4 ++++ b/libltdl/m4/libtool.m4 +@@ -1312,7 +1312,7 @@ ia64-*-hpux*) + rm -rf conftest* + ;; + +-x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ ++x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ + s390*-*linux*|s390*-*tpf*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext +@@ -1326,7 +1326,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; +- ppc64-*linux*|powerpc64-*linux*) ++ powerpcle-*linux*) ++ LD="${LD-ld} -m elf32lppclinux" ++ ;; ++ powerpc-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) +@@ -1345,7 +1348,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; +- ppc*-*linux*|powerpc*-*linux*) ++ powerpcle-*linux*) ++ LD="${LD-ld} -m elf64lppc" ++ ;; ++ powerpc-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*|s390*-*tpf*) diff --git a/libtool.spec b/libtool.spec index d042fd1..d12c7a2 100644 --- a/libtool.spec +++ b/libtool.spec @@ -3,7 +3,7 @@ Summary: The GNU Portable Library Tool Name: libtool Version: 2.4.2 -Release: 19%{?dist} +Release: 20%{?dist} License: GPLv2+ and LGPLv2+ and GFDL URL: http://www.gnu.org/software/libtool/ Group: Development/Tools @@ -17,6 +17,11 @@ Patch1: libtool-2.4.2-TEMPORARY-disable-gcj-tests.patch # fixed in next release. Patch2: libtool-2.4.2-tar-no-owner.patch +# powerpc*le-linux support +# ~> upstream +# ~> git diff c37bc1a3..bd998a7e +Patch3: libtool-2.4.2-powerpcle-linux.patch + Requires(post): /sbin/install-info Requires(preun): /sbin/install-info @@ -80,6 +85,7 @@ Static libraries and header files for development with ltdl. %patch0 -p1 -b .rpath %patch1 -p1 -b .temp-disable-gcj-test %patch2 -p1 -b .tar-no-same-owner +%patch3 -p1 -b .ppc-le-support %build @@ -159,6 +165,9 @@ fi %{_libdir}/libltdl.so %changelog +* Tue Oct 15 2013 Pavel Raiskup - 2.4.2-20 +- backport support for powerpc*le-linux to libtool.m4 + * Thu Oct 10 2013 Pavel Raiskup - 2.4.2-19 - rebuild once again for new config.{sub,guess} in redhat-rpm-config