patches/duma/2_5_12/100-cross-compile.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Jan 12 19:24:03 2010 +0100 (2010-01-12)
changeset 1761 88020b2c3246
permissions -rw-r--r--
scripts/functions: change handling of nochdir

- 'nochdir' must be the first option
- have systematic pushd/popd, even if nochdir
     1 diff -durN duma_2_5_12.orig/Makefile duma_2_5_12/Makefile
     2 --- duma_2_5_12.orig/Makefile	2007-08-17 09:34:25.000000000 +0200
     3 +++ duma_2_5_12/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 @@ -299,7 +296,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 @@ -360,7 +357,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  #