patches/duma/2_5_8/100-cross-compile.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Sep 07 21:31:01 2007 +0000 (2007-09-07)
changeset 369 9258a7c3b84f
permissions -rw-r--r--
Add D.U.M.A. 2_5_8 and associated patches.
Fix a patch for D.U.M.A 2_5_1.
Add libelf 0.8.10, still does not build... :-(
     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  #