patches/dmalloc/5.5.2/140-shared_library.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 103 b6e20abe9256
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 This patch makes building the shared library possible.
     2 
     3 Copyright 2007 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
     4 Licensed to you as dmalloc-5.5.2 is.
     5 
     6 diff -dur dmalloc-5.5.2.orig/Makefile.in dmalloc-5.5.2/Makefile.in
     7 --- dmalloc-5.5.2.orig/Makefile.in	2007-05-14 19:26:14.000000000 +0200
     8 +++ dmalloc-5.5.2/Makefile.in	2007-05-18 15:54:04.000000000 +0200
     9 @@ -257,7 +257,7 @@
    10  # via: http://256.com/gray/email.html
    11  $(LIB_SL) : $(LIBRARY)
    12  	rm -f $@ $@.t
    13 -	@shlinkargs@ $(LIBRARY) $(OBJS) $(NORMAL_OBJS)
    14 +	@shlinkargs@ $(LIBRARY)
    15  	mv $@.t $@
    16  
    17  $(LIBRARY) : $(OBJS) $(NORMAL_OBJS)
    18 @@ -270,7 +270,7 @@
    19  
    20  $(LIB_TH_SL) : $(LIB_TH)
    21  	rm -f $@ $@.t
    22 -	@shlinkargs@ $(LIB_TH) $(OBJS) $(THREAD_OBJS)
    23 +	@shlinkargs@ $(LIB_TH)
    24  	mv $@.t $@
    25  
    26  $(LIB_CXX) : $(OBJS) $(NORMAL_OBJS) $(CXX_OBJS)
    27 @@ -279,7 +279,7 @@
    28  
    29  $(LIB_CXX_SL) : $(LIB_CXX)
    30  	rm -f $@ $@.t
    31 -	@shlinkargs@ $(LIB_CXX) $(OBJS) $(NORMAL_OBJS) $(CXX_OBJS)
    32 +	@shlinkargs@ $(LIB_CXX)
    33  	mv $@.t $@
    34  
    35  $(LIB_TH_CXX) : $(OBJS) $(THREAD_OBJS) $(CXX_OBJS)
    36 @@ -288,7 +288,7 @@
    37  
    38  $(LIB_TH_CXX_SL) : $(LIB_TH_CXX)
    39  	rm -f $@ $@.t
    40 -	@shlinkargs@ $(LIB_TH_CXX) $(OBJS) $(THREAD_OBJS) $(CXX_OBJS)
    41 +	@shlinkargs@ $(LIB_TH_CXX)
    42  	mv $@.t $@
    43  
    44  threadssl : $(LIB_TH_SL)