summaryrefslogtreecommitdiff
path: root/patches/duma/2_5_8/100-cross-compile.patch
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-09-07 21:31:01 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-09-07 21:31:01 (GMT)
commit011e23d0943aae72d5a9f9c109055e45d10362c8 (patch)
tree7ebc36a0ae1abb0deb188ce099a7b120b7e7e51c /patches/duma/2_5_8/100-cross-compile.patch
parentc77336fb3d2b3205fee12e2e0cd44c0127bfce50 (diff)
Add D.U.M.A. 2_5_8 and associated patches.
Fix a patch for D.U.M.A 2_5_1. Add libelf 0.8.10, still does not build... :-(
Diffstat (limited to 'patches/duma/2_5_8/100-cross-compile.patch')
-rw-r--r--patches/duma/2_5_8/100-cross-compile.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/patches/duma/2_5_8/100-cross-compile.patch b/patches/duma/2_5_8/100-cross-compile.patch
new file mode 100644
index 0000000..bc96c9b
--- /dev/null
+++ b/patches/duma/2_5_8/100-cross-compile.patch
@@ -0,0 +1,31 @@
+diff -durN duma_2_5_8.orig/Makefile duma_2_5_8/Makefile
+--- duma_2_5_8.orig/Makefile 2007-08-17 09:34:25.000000000 +0200
++++ duma_2_5_8/Makefile 2007-09-07 21:50:04.000000000 +0200
+@@ -93,9 +93,6 @@
+ # also define 'WIN32'
+
+ # some defaults:
+-CC=gcc
+-CXX=g++
+-AR=ar
+ INSTALL=install
+ RM=rm
+ RMFORCE=rm -f
+@@ -281,7 +278,7 @@
+
+ createconf$(EXEPOSTFIX): createconf.o
+ - $(RMFORCE) createconf$(EXEPOSTFIX)
+- $(CC) $(CFLAGS) $(DUMA_OPTIONS) createconf.o -o createconf$(EXEPOSTFIX)
++ $(HOSTCC) $(HOSTCFLAGS) $(DUMA_OPTIONS) createconf.o -o createconf$(EXEPOSTFIX)
+
+ tstheap$(EXEPOSTFIX): libduma.a tstheap.o
+ - $(RMFORCE) tstheap$(EXEPOSTFIX)
+@@ -338,7 +335,7 @@
+ # define rules how to build objects for createconf
+ #
+ createconf.o:
+- $(CC) $(CFLAGS) $(DUMA_OPTIONS) -c createconf.c -o $@
++ $(HOSTCC) $(HOSTCFLAGS) $(DUMA_OPTIONS) -c createconf.c -o $@
+
+
+ #