1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/duma/2_5_14/100-cross-compile.patch Fri Apr 08 00:59:32 2011 +0200
1.3 @@ -0,0 +1,32 @@
1.4 +diff -durN duma_2_5_14.orig/Makefile duma_2_5_14/Makefile
1.5 +--- duma_2_5_14.orig/Makefile 2008-03-13 00:54:10.000000000 +0100
1.6 ++++ duma_2_5_14/Makefile 2008-06-17 10:28:45.000000000 +0200
1.7 +@@ -93,10 +93,6 @@
1.8 + # also define 'WIN32'
1.9 +
1.10 + # some defaults:
1.11 +-CC=gcc
1.12 +-CXX=g++
1.13 +-AR=ar
1.14 +-RANLIB=ranlib
1.15 + INSTALL=install
1.16 + RM=rm
1.17 + RMFORCE=rm -f
1.18 +@@ -317,7 +313,7 @@
1.19 +
1.20 + createconf$(EXEPOSTFIX): createconf.o
1.21 + - $(RMFORCE) createconf$(EXEPOSTFIX)
1.22 +- $(CC) $(CFLAGS) $(DUMA_OPTIONS) createconf.o -o createconf$(EXEPOSTFIX)
1.23 ++ $(HOSTCC) $(HOSTCFLAGS) $(DUMA_OPTIONS) createconf.o -o createconf$(EXEPOSTFIX)
1.24 +
1.25 + tstheap$(EXEPOSTFIX): libduma.a tstheap.o
1.26 + - $(RMFORCE) tstheap$(EXEPOSTFIX)
1.27 +@@ -378,7 +374,7 @@
1.28 + # define rules how to build objects for createconf
1.29 + #
1.30 + createconf.o:
1.31 +- $(CC) $(CFLAGS) $(DUMA_OPTIONS) -c createconf.c -o $@
1.32 ++ $(HOSTCC) $(HOSTCFLAGS) $(DUMA_OPTIONS) -c createconf.c -o $@
1.33 +
1.34 +
1.35 + #