patches/ppl/0.11.1/200-fix-build-with-local-gmp.patch
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Sun May 11 13:38:12 2014 +0200 (2014-05-11)
changeset 3313 ad14212ebf54
permissions -rw-r--r--
config: switch cc with libc in the config order

Some of the compiler options depend on the C library choice, (e.g.
whether core passes are needed).

Since the compiler menu comes before the C library menu, those options
may or may not be visible until the C library is chosen, leading to
either options being visible by the user (thus be puzzling as they would
not apply to his case), or invisible to him (yet again puzzling him).

Invert the order of the compiler and the C library in the menuconfig. It
anyway looks more rational, in the end.

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