patches/uClibc/0.9.32/130-nptl-pthread-Correct-path-for-machine-specific-pt-initfini.c.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 commit ebe6c38d7e60e8a43d8b926c17a561a5a3e06a22
     2 Author: Khem Raj <raj.khem@gmail.com>
     3 Date:   Mon Jun 13 17:13:52 2011 -0700
     4 
     5     nptl/pthread: Correct path for machine specific pt-initfini.c
     6     
     7     Signed-off-by: Khem Raj <raj.khem@gmail.com>
     8     Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
     9 
    10 diff --git a/libpthread/nptl/sysdeps/pthread/Makefile.in b/libpthread/nptl/sysdeps/pthread/Makefile.in
    11 index 398eaea..ca84642 100644
    12 --- a/libpthread/nptl/sysdeps/pthread/Makefile.in
    13 +++ b/libpthread/nptl/sysdeps/pthread/Makefile.in
    14 @@ -75,8 +75,8 @@ CFLAGS-pt-initfini.c = -S -g0 $(PICFLAG) -fno-inline-functions	\
    15  			$(patsubst -f%,-fno-%,$(call check_gcc,-fexceptions,))
    16  
    17  #ASFLAGS += $(PICFLAG) -I$(top_srcdir)include -I$(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)
    18 -ifneq ($(wildcard $(libpthread_DIR)/sysdeps/linux/$(TARGET_ARCH)/pt-initfini.c),)
    19 -PTHREAD_INITFINI := $(libpthread_DIR)/sysdeps/linux/$(TARGET_ARCH)/pt-initfini.c
    20 +ifneq ($(wildcard $(libpthread_pthread_DIR)/../unix/sysv/linux/$(TARGET_ARCH)/pt-initfini.c),)
    21 +PTHREAD_INITFINI := $(libpthread_pthread_DIR)/../unix/sysv/linux/$(TARGET_ARCH)/pt-initfini.c
    22  else
    23  PTHREAD_INITFINI := $(libpthread_pthread_DIR)/pt-initfini.c
    24  endif