patches/duma/2_5_8/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
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 -durN duma_2_5_8.orig/Makefile duma_2_5_8/Makefile
     2 --- duma_2_5_8.orig/Makefile	2007-08-17 09:34:25.000000000 +0200
     3 +++ duma_2_5_8/Makefile	2007-09-07 21:50:04.000000000 +0200
     4 @@ -93,9 +93,6 @@
     5  # also define 'WIN32'
     6  
     7  # some defaults:
     8 -CC=gcc
     9 -CXX=g++
    10 -AR=ar
    11  INSTALL=install
    12  RM=rm
    13  RMFORCE=rm -f
    14 @@ -281,7 +278,7 @@
    15  
    16  createconf$(EXEPOSTFIX): createconf.o
    17  	- $(RMFORCE) createconf$(EXEPOSTFIX)
    18 -	$(CC) $(CFLAGS) $(DUMA_OPTIONS) createconf.o -o createconf$(EXEPOSTFIX)
    19 +	$(HOSTCC) $(HOSTCFLAGS) $(DUMA_OPTIONS) createconf.o -o createconf$(EXEPOSTFIX)
    20  
    21  tstheap$(EXEPOSTFIX): libduma.a tstheap.o
    22  	- $(RMFORCE) tstheap$(EXEPOSTFIX)
    23 @@ -338,7 +335,7 @@
    24  # define rules how to build objects for createconf
    25  #
    26  createconf.o:
    27 -	$(CC) $(CFLAGS) $(DUMA_OPTIONS) -c createconf.c -o $@
    28 +	$(HOSTCC) $(HOSTCFLAGS) $(DUMA_OPTIONS) -c createconf.c -o $@
    29  
    30  
    31  #