1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/duma/2_5_15/100-cross-compile.patch Mon May 17 14:11:08 2010 +0200
1.3 @@ -0,0 +1,32 @@
1.4 +diff -durN duma_2_5_15.orig/GNUmakefile duma_2_5_15/GNUmakefile
1.5 +--- duma_2_5_15.orig/GNUmakefile 2008-08-03 21:22:38.000000000 +0200
1.6 ++++ duma_2_5_15/GNUmakefile 2009-06-19 15:32:23.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 +@@ -471,7 +467,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 +@@ -532,7 +528,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 + #