patches/cloog-ppl/0.15.8/100-add_on_libs_position.patch
author "Bryan Hundven" <bryanhundven@gmail.com>
Thu Mar 01 15:23:49 2012 -0800 (2012-03-01)
changeset 2909 28ac8fbd9e6a
permissions -rw-r--r--
libg/eglibc: add updated eglibc 2.15

Includes a patch to remove __builtin_expect test:

In eglibc-2.15, the build breaks in configure while testing
for the existance of __builtin_expect. It fails with newer
versions of gcc.

This patch is a modification of an upstream change in glibc
mainline (to be 2.16) to fix the following error:

[CFG ] checking for __builtin_expect... no
[ERROR] configure: error: support for __builtin_expect needed

http://sourceware.org/git/?p=glibc.git;a=commit;h=3857022a761ea7251f8e5c0e45d382ebc3e34cf9

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
[yann.morin.1998@free.fr: coalesce both patches into a single changeset]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
     1 diff -Naurd cloog-ppl-0.15.8-a/configure cloog-ppl-0.15.8-b/configure
     2 --- cloog-ppl-0.15.8-a/configure	2010-02-11 19:05:30.000000000 +0100
     3 +++ cloog-ppl-0.15.8-b/configure	2012-01-27 13:27:09.710988253 +0100
     4 @@ -12902,7 +12902,7 @@
     5  
     6  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     7  
     8 -	LIBS="$LIBS -lppl_c -lppl -lgmpxx"
     9 +	LIBS="-lppl_c -lppl -lgmpxx $LIBS"
    10  
    11  cat >>confdefs.h <<\_ACEOF
    12  #define CLOOG_PPL_BACKEND 1
    13 diff -Naurd cloog-ppl-0.15.8-a/configure.in cloog-ppl-0.15.8-b/configure.in
    14 --- cloog-ppl-0.15.8-a/configure.in	2010-02-11 19:05:31.000000000 +0100
    15 +++ cloog-ppl-0.15.8-b/configure.in	2012-01-27 13:27:09.710988253 +0100
    16 @@ -345,7 +345,7 @@
    17  	#endif
    18  	], [AC_MSG_RESULT([yes])], [AC_MSG_ERROR(Can't find correct version of PPL.) ])
    19  
    20 -	LIBS="$LIBS -lppl_c -lppl -lgmpxx"
    21 +	LIBS="-lppl_c -lppl -lgmpxx $LIBS"
    22  	AC_DEFINE([CLOOG_PPL_BACKEND], 1, [Use the PPL backend])
    23  
    24  else