m4: add support for powerpc*le-linux to libtool.m4

Version: 2.4.2-20
This commit is contained in:
Pavel Raiskup 2013-10-15 08:38:52 +02:00
parent d0ff0b7639
commit 9e51824dd4
2 changed files with 47 additions and 1 deletions

View File

@ -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*)

View File

@ -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 <praiskup@redhat.com> - 2.4.2-20
- backport support for powerpc*le-linux to libtool.m4
* Thu Oct 10 2013 Pavel Raiskup <praiskup@redhat.com> - 2.4.2-19
- rebuild once again for new config.{sub,guess} in redhat-rpm-config