patches/duma/2_5_1/100-cross-compile.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 236 42650dc4e95e
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 diff -dur duma_2_5_1/Makefile duma_2_5_1.orig/Makefile
     2 --- duma_2_5_1/Makefile	2006-06-18 06:02:13.000000000 +0200
     3 +++ duma_2_5_1.orig/Makefile	2007-07-11 17:49:43.000000000 +0200
     4 @@ -98,10 +98,6 @@
     5    LIBS=-lpthread
     6  endif
     7  
     8 -
     9 -CC=gcc
    10 -CXX=g++
    11 -AR=ar
    12  INSTALL=install
    13  
    14  ############################################################
    15 @@ -169,7 +165,7 @@
    16  
    17  createconf: createconf.o
    18  	- rm -f createconf
    19 -	$(CC) $(CFLAGS) $(DUMA_OPTIONS) createconf.o -o createconf
    20 +	$(HOSTCC) $(HOSTCFLAGS) $(DUMA_OPTIONS) createconf.o -o createconf
    21  
    22  tstheap: libduma.a tstheap.o
    23  	- rm -f tstheap
    24 @@ -211,7 +207,7 @@
    25  # define rules how to build objects for createconf
    26  #
    27  createconf.o:
    28 -	$(CC) $(CFLAGS) $(DUMA_OPTIONS) -c createconf.c -o $@
    29 +	$(HOSTCC) $(HOSTCFLAGS) $(DUMA_OPTIONS) -c createconf.c -o $@
    30  
    31  
    32  #