---
 .../files/gdbm-1.11-configure-with-ppc64le.patch   | 26 ++++++++++++++++++++++
 sys-libs/gdbm/gdbm-1.11.ebuild                     |  1 +
 2 files changed, 27 insertions(+)
 create mode 100644 sys-libs/gdbm/files/gdbm-1.11-configure-with-ppc64le.patch

diff --git a/sys-libs/gdbm/files/gdbm-1.11-configure-with-ppc64le.patch 
b/sys-libs/gdbm/files/gdbm-1.11-configure-with-ppc64le.patch
new file mode 100644
index 0000000..2bdba70
--- /dev/null
+++ b/sys-libs/gdbm/files/gdbm-1.11-configure-with-ppc64le.patch
@@ -0,0 +1,26 @@
+--- configure.orig     2016-04-09 17:02:36.818123640 +0000
++++ configure  2016-04-09 17:04:09.407071685 +0000
+@@ -6898,6 +6898,9 @@
+         ppc64-*linux*|powerpc64-*linux*)
+           LD="${LD-ld} -m elf32ppclinux"
+           ;;
++        ppc64le-*linux*|powerpc64le-*linux*)
++          LD="${LD-ld} -m elf32lppclinux"
++          ;;
+         s390x-*linux*)
+           LD="${LD-ld} -m elf_s390"
+           ;;
+@@ -6914,9 +6917,12 @@
+         x86_64-*linux*)
+           LD="${LD-ld} -m elf_x86_64"
+           ;;
+-        ppc*-*linux*|powerpc*-*linux*)
++        ppc64-*linux*|powerpc64-*linux*)
+           LD="${LD-ld} -m elf64ppc"
+           ;;
++        ppc64le-*linux*|powerpc64le-*linux*)
++          LD="${LD-ld} -m elf64lppc"
++          ;;
+         s390*-*linux*|s390*-*tpf*)
+           LD="${LD-ld} -m elf64_s390"
+           ;;
diff --git a/sys-libs/gdbm/gdbm-1.11.ebuild b/sys-libs/gdbm/gdbm-1.11.ebuild
index 06ebd03..aa9d6cf 100644
--- a/sys-libs/gdbm/gdbm-1.11.ebuild
+++ b/sys-libs/gdbm/gdbm-1.11.ebuild
@@ -26,6 +26,7 @@ RDEPEND="
 EX_S="${WORKDIR}"/${EX_P}
 
 src_prepare() {
+       epatch "${FILESDIR}"/${P}-configure-with-ppc64le.patch
        elibtoolize
 }
 
-- 
1.9.1


Reply via email to