patches/ppl/0.11.1/200-fix-build-with-local-gmp.patch
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Wed Jul 24 19:11:18 2013 +0200 (2013-07-24)
changeset 3226 20b02b5019cd
permissions -rw-r--r--
complibs/ppl: fix build when local system has libgmp already installed

Basically, the ppl configure script wasn't properly setting
CFLAGS/CXXFLAGS/LDFLAGS to point at the ctng-built gmp, so ppl tried to
use the system gmp headers instead.

This patch fixes that for all PPL versions supported by crosstools-ng.

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
[yann.morin.1998@free.fr: slightly touch the commit log]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <20130715230656.GB23382@shaftnet.org>
Patchwork-Id: 259300
     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.