patches/binutils/2.19.1a/160-use-new-ld-dtags.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 1243 5d15872659ec
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 Original patch from: ../crosstool-NG/ct-ng.trunk/patches/binutils/2.19/160-use-new-ld-dtags.patch
     2 
     3 -= BEGIN original header =-
     4 Original patch from Gentoo:
     5 gentoo/src/patchsets/binutils/2.19/76_all_use-new-ld-dtags.patch
     6 
     7 -= END original header =-
     8 
     9 diff -durN binutils-2.19.1.orig/ld/ldmain.c binutils-2.19.1/ld/ldmain.c
    10 --- binutils-2.19.1.orig/ld/ldmain.c	2009-03-08 11:57:03.000000000 +0100
    11 +++ binutils-2.19.1/ld/ldmain.c	2009-03-08 11:57:03.000000000 +0100
    12 @@ -262,6 +262,7 @@
    13  
    14    link_info.allow_undefined_version = TRUE;
    15    link_info.keep_memory = TRUE;
    16 +  link_info.new_dtags = TRUE;
    17    link_info.combreloc = TRUE;
    18    link_info.strip_discarded = TRUE;
    19    link_info.emit_hash = TRUE;