patches/ppl/0.10.2/200-fix-build-with-local-gmp.patch
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Wed Jun 25 23:33:01 2014 +0200 (2014-06-25)
changeset 3325 069f43a215cc
permissions -rw-r--r--
all: fix wildcard to work with make-4.x

In make-3.8x, the $(wildacrd) function would sort the entries,
while in make-4.x, it would just return the entries in any
unpredictable order [*]

Use the $(sort) function to get reproducible behaviour.

[*] Well, most probably the roder the entries appear when read
from readdir()

Reported-by: Andrew Ruder <andrew.ruder@elecsyscorp.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Tested-by: Andrew Ruder <andrew.ruder@elecsyscorp.com>
     1 diff -aur ppl-0.10-orig/configure ppl-0.10/configure
     2 --- ppl-0.10-orig/configure	2008-11-04 04:37:00.000000000 -0500
     3 +++ ppl-0.10/configure	2013-07-15 18:48:26.688013150 -0400
     4 @@ -15162,6 +15162,9 @@
     5      with_libgmpxx_prefix="$with_libgmp_prefix"
     6    fi
     7  fi
     8 +CPPFLAGS="$CPPFLAGS -I$with_libgmp_prefix/include"
     9 +CXXFLAGS="$CXXFLAGS -I$with_libgmpxx_prefix/include"
    10 +LDFLAGS="$CPPFLAGS -L$with_libgmpxx_prefix/lib -L$with_libgmp_prefix/lib"
    11  
    12  
    13  
    14 diff -aur ppl-0.10-orig/m4/ac_check_gmp.m4 ppl-0.10/m4/ac_check_gmp.m4
    15 --- ppl-0.10-orig/m4/ac_check_gmp.m4	2008-10-22 07:43:22.000000000 -0400
    16 +++ ppl-0.10/m4/ac_check_gmp.m4	2013-07-15 18:48:26.669013816 -0400
    17 @@ -31,6 +31,9 @@
    18      with_libgmpxx_prefix="$with_libgmp_prefix"
    19    fi
    20  fi
    21 +CPPFLAGS="$CPPFLAGS -I$with_libgmp_prefix/include"
    22 +CXXFLAGS="$CXXFLAGS -I$with_libgmpxx_prefix/include"
    23 +LDFLAGS="$CPPFLAGS -L$with_libgmpxx_prefix/lib -L$with_libgmp_prefix/lib"
    24  
    25  dnl Check how to link with libgmp.
    26  AC_LIB_LINKFLAGS([gmp])