patches/ppl/0.10.2/200-fix-build-with-local-gmp.patch
author Cody P Schafer <dev@codyps.com>
Mon May 12 00:02:13 2014 +0200 (2014-05-12)
changeset 3322 eb13867a034c
permissions -rw-r--r--
arch/powerpc: add powerpc64le support

Technically, I don't forbid powerpcle support either, but I'm not sure that
there is any library/compiler support for that at the moment (though the hw
technically makes it possible).

powerpc64le needs glibc 2.19 and gcc 4.9. I haven't looked into the support
tools, but at least gdb 7.5 is too old (7.7.1 definitely has support).

Also make powerpc64 non-experimental. It's practically old at this point.

Signed-off-by: Cody P Schafer <dev@codyps.com>
[yann.morin.1998@free.fr: use ${target_endian_le} and ${target_bits_64}]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <64bfbbced9dd8f62e0d6.1399801945@gun>
Patchwork-Id: 347775
yann@3226
     1
diff -aur ppl-0.10-orig/configure ppl-0.10/configure
yann@3226
     2
--- ppl-0.10-orig/configure	2008-11-04 04:37:00.000000000 -0500
yann@3226
     3
+++ ppl-0.10/configure	2013-07-15 18:48:26.688013150 -0400
yann@3226
     4
@@ -15162,6 +15162,9 @@
yann@3226
     5
     with_libgmpxx_prefix="$with_libgmp_prefix"
yann@3226
     6
   fi
yann@3226
     7
 fi
yann@3226
     8
+CPPFLAGS="$CPPFLAGS -I$with_libgmp_prefix/include"
yann@3226
     9
+CXXFLAGS="$CXXFLAGS -I$with_libgmpxx_prefix/include"
yann@3226
    10
+LDFLAGS="$CPPFLAGS -L$with_libgmpxx_prefix/lib -L$with_libgmp_prefix/lib"
yann@3226
    11
 
yann@3226
    12
 
yann@3226
    13
 
yann@3226
    14
diff -aur ppl-0.10-orig/m4/ac_check_gmp.m4 ppl-0.10/m4/ac_check_gmp.m4
yann@3226
    15
--- ppl-0.10-orig/m4/ac_check_gmp.m4	2008-10-22 07:43:22.000000000 -0400
yann@3226
    16
+++ ppl-0.10/m4/ac_check_gmp.m4	2013-07-15 18:48:26.669013816 -0400
yann@3226
    17
@@ -31,6 +31,9 @@
yann@3226
    18
     with_libgmpxx_prefix="$with_libgmp_prefix"
yann@3226
    19
   fi
yann@3226
    20
 fi
yann@3226
    21
+CPPFLAGS="$CPPFLAGS -I$with_libgmp_prefix/include"
yann@3226
    22
+CXXFLAGS="$CXXFLAGS -I$with_libgmpxx_prefix/include"
yann@3226
    23
+LDFLAGS="$CPPFLAGS -L$with_libgmpxx_prefix/lib -L$with_libgmp_prefix/lib"
yann@3226
    24
 
yann@3226
    25
 dnl Check how to link with libgmp.
yann@3226
    26
 AC_LIB_LINKFLAGS([gmp])