patches/gcc/4.4.4/350-index_macro.patch
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Wed Jun 25 23:33:01 2014 +0200 (2014-06-25)
changeset 3325 069f43a215cc
parent 1948 d341be24dc68
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 -= BEGIN original header =-
     2 Original patch from gentoo: gentoo/src/patchsets/gcc/4.3.1/uclibc/90_all_304-index_macro.patch
     3 -= END original header =-
     4 
     5 diff -durN gcc-4.4.4.orig/libstdc++-v3/include/ext/rope gcc-4.4.4/libstdc++-v3/include/ext/rope
     6 --- gcc-4.4.4.orig/libstdc++-v3/include/ext/rope	2009-04-10 01:23:07.000000000 +0200
     7 +++ gcc-4.4.4/libstdc++-v3/include/ext/rope	2010-05-16 19:37:47.000000000 +0200
     8 @@ -54,6 +54,9 @@
     9  #include <bits/gthr.h>
    10  #include <tr1/functional>
    11  
    12 +/* cope w/ index defined as macro, SuSv3 proposal */
    13 +#undef index
    14 +
    15  # ifdef __GC
    16  #   define __GC_CONST const
    17  # else
    18 diff -durN gcc-4.4.4.orig/libstdc++-v3/include/ext/ropeimpl.h gcc-4.4.4/libstdc++-v3/include/ext/ropeimpl.h
    19 --- gcc-4.4.4.orig/libstdc++-v3/include/ext/ropeimpl.h	2009-04-10 01:23:07.000000000 +0200
    20 +++ gcc-4.4.4/libstdc++-v3/include/ext/ropeimpl.h	2010-05-16 19:37:47.000000000 +0200
    21 @@ -49,6 +49,9 @@
    22  #include <ext/memory> // For uninitialized_copy_n
    23  #include <ext/numeric> // For power
    24  
    25 +/* cope w/ index defined as macro, SuSv3 proposal */
    26 +#undef index
    27 +
    28  _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
    29  
    30    using std::size_t;