patches/ppl/0.11/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
     1 --- a/m4/ac_check_gmp.m4~	2011-02-27 04:07:47.000000000 -0500
     2 +++ b/m4/ac_check_gmp.m4	2013-07-10 19:57:35.894457259 -0400
     3 @@ -32,6 +32,9 @@
     4      with_libgmpxx_prefix="$with_libgmp_prefix"
     5    fi
     6  fi
     7 +CPPFLAGS="$CPPFLAGS -I$with_libgmp_prefix/include"
     8 +CXXFLAGS="$CXXFLAGS -I$with_libgmpxx_prefix/include"
     9 +LDFLAGS="$CPPFLAGS -L$with_libgmpxx_prefix/lib -L$with_libgmp_prefix/lib"
    10  
    11  AC_ARG_WITH(gmp-build,
    12    AS_HELP_STRING([--with-gmp-build=DIR],
    13 --- a/configure~	2011-02-27 04:07:47.000000000 -0500
    14 +++ b/configure		2013-07-10 19:57:35.894457259 -0400
    15 @@ -10217,6 +10217,9 @@
    16      with_libgmpxx_prefix="$with_libgmp_prefix"
    17    fi
    18  fi
    19 +CPPFLAGS="$CPPFLAGS -I$with_libgmp_prefix/include"
    20 +CXXFLAGS="$CXXFLAGS -I$with_libgmpxx_prefix/include"
    21 +LDFLAGS="$CPPFLAGS -L$with_libgmpxx_prefix/lib -L$with_libgmp_prefix/lib"
    22  
    23  
    24  # Check whether --with-gmp-build was given.