Source: proftpd-dfsg
Version: 1.3.5-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: ppc64el

Dear Maintainer,

Currently proftpd-dfsg fails to build on ppc64el building system because it
fails to detect that ppc64el supports shared library. This is a fault in the
configure and libtool files that are part of this package.
 
This patch simply add the ppc64el snippets into the configure and libtool files.
I copied this patch from Ubuntu, and Ubuntu is using it for a long time.

You may want to fix this problem using autoreconf scripts also.

Thank you,
Breno
Index: b/configure
===================================================================
--- a/configure
+++ b/configure
@@ -5161,7 +5161,10 @@
 	  x86_64-*linux*)
 	    LD="${LD-ld} -m elf_i386"
 	    ;;
-	  ppc64-*linux*|powerpc64-*linux*)
+	  powerpc64le-*)
+	    LD="${LD-ld} -m elf32lppclinux"
+	    ;;
+	  powerpc64-*)
 	    LD="${LD-ld} -m elf32ppclinux"
 	    ;;
 	  s390x-*linux*)
@@ -5180,7 +5183,10 @@
 	  x86_64-*linux*)
 	    LD="${LD-ld} -m elf_x86_64"
 	    ;;
-	  ppc*-*linux*|powerpc*-*linux*)
+	  powerpcle-*)
+	    LD="${LD-ld} -m elf64lppc"
+	    ;;
+	  powerpc-*)
 	    LD="${LD-ld} -m elf64ppc"
 	    ;;
 	  s390*-*linux*|s390*-*tpf*)
Index: b/lib/libltdl/m4/libtool.m4
===================================================================
--- a/lib/libltdl/m4/libtool.m4
+++ b/lib/libltdl/m4/libtool.m4
@@ -1281,7 +1281,10 @@
 	  x86_64-*linux*)
 	    LD="${LD-ld} -m elf_i386"
 	    ;;
-	  ppc64-*linux*|powerpc64-*linux*)
+	  powerpc64le-*)
+	    LD="${LD-ld} -m elf32lppclinux"
+	    ;;
+	  powerpc64-*)
 	    LD="${LD-ld} -m elf32ppclinux"
 	    ;;
 	  s390x-*linux*)
@@ -1300,7 +1303,10 @@
 	  x86_64-*linux*)
 	    LD="${LD-ld} -m elf_x86_64"
 	    ;;
-	  ppc*-*linux*|powerpc*-*linux*)
+	  powerpcle-*)
+	    LD="${LD-ld} -m elf64lppc"
+	    ;;
+	  powerpc-*)
 	    LD="${LD-ld} -m elf64ppc"
 	    ;;
 	  s390*-*linux*|s390*-*tpf*)

Reply via email to