1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/duma/2_5_8/100-cross-compile.patch Wed Oct 12 00:43:47 2011 +0200
1.3 @@ -0,0 +1,31 @@
1.4 +diff -durN duma_2_5_8.orig/Makefile duma_2_5_8/Makefile
1.5 +--- duma_2_5_8.orig/Makefile 2007-08-17 09:34:25.000000000 +0200
1.6 ++++ duma_2_5_8/Makefile 2007-09-07 21:50:04.000000000 +0200
1.7 +@@ -93,9 +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 + INSTALL=install
1.15 + RM=rm
1.16 + RMFORCE=rm -f
1.17 +@@ -281,7 +278,7 @@
1.18 +
1.19 + createconf$(EXEPOSTFIX): createconf.o
1.20 + - $(RMFORCE) createconf$(EXEPOSTFIX)
1.21 +- $(CC) $(CFLAGS) $(DUMA_OPTIONS) createconf.o -o createconf$(EXEPOSTFIX)
1.22 ++ $(HOSTCC) $(HOSTCFLAGS) $(DUMA_OPTIONS) createconf.o -o createconf$(EXEPOSTFIX)
1.23 +
1.24 + tstheap$(EXEPOSTFIX): libduma.a tstheap.o
1.25 + - $(RMFORCE) tstheap$(EXEPOSTFIX)
1.26 +@@ -338,7 +335,7 @@
1.27 + # define rules how to build objects for createconf
1.28 + #
1.29 + createconf.o:
1.30 +- $(CC) $(CFLAGS) $(DUMA_OPTIONS) -c createconf.c -o $@
1.31 ++ $(HOSTCC) $(HOSTCFLAGS) $(DUMA_OPTIONS) -c createconf.c -o $@
1.32 +
1.33 +
1.34 + #