patches/duma/2_5_1/100-cross-compile.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Jul 26 09:31:07 2008 +0000 (2008-07-26)
changeset 727 33c246763c8a
parent 236 42650dc4e95e
permissions -rw-r--r--
Update the PPC sample, add a new softfloat PPC sample, thanks to Thomas JOURDAN.

/trunk/samples/powerpc-unknown-linux-gnu/crosstool.config | 54 42 12 0 ++
/trunk/samples/powerpc-unknown_nofpu-linux-gnu/crosstool.config | 331 331 0 0 +++++++++++++++
/trunk/samples/powerpc-unknown_nofpu-linux-gnu/reported.by | 2 2 0 0 +
3 files changed, 375 insertions(+), 12 deletions(-)
     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  #