patches/duma/2_5_12/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
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 -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  #