summaryrefslogtreecommitdiff
path: root/package/maradns/patches/cross-compile-fix.patch
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-01-22 22:37:50 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-01-22 22:37:50 +0100
commit9436a026e2e23d207fbdcb9e8bc9b076e3573700 (patch)
treeadb1937bc90be8869a5f7c9636da84773414eb3b /package/maradns/patches/cross-compile-fix.patch
parent52b1b0100c53b1f8699955df618fcb47744e0a7e (diff)
activate GCC cflags check, cleanup FLAGS stuff in OpenADK.
* remove TCFLAGS/TLDFLAGS/TCPPFLAGS and only use TARGET_CFLAGS/TARGET_LDFLAGS/TARGET_CPPFLAGS, ... * activate GCC_HONOUR_COPTS and fix all packages to honour CFLAGS * use CC_FOR_BUILD, CFLAGS_FOR_BUILD, ... for all build compilation, remove HOST* variants * introduce KERNEL_MODULE_FLAGS for external kernel modules * mark rpm package as broken, mark syslinux for native builds only, mark libhugetlb for eglibc/glibc only usage
Diffstat (limited to 'package/maradns/patches/cross-compile-fix.patch')
-rw-r--r--package/maradns/patches/cross-compile-fix.patch18
1 files changed, 13 insertions, 5 deletions
diff --git a/package/maradns/patches/cross-compile-fix.patch b/package/maradns/patches/cross-compile-fix.patch
index 8277956c5..384cd6936 100644
--- a/package/maradns/patches/cross-compile-fix.patch
+++ b/package/maradns/patches/cross-compile-fix.patch
@@ -1,12 +1,20 @@
diff -urN maradns-1.0.26.old/rng/Makefile maradns-1.0.26.dev/rng/Makefile
---- maradns-1.4.03.orig/rng/Makefile 2006-01-02 17:59:33.000000000 +0100
-+++ maradns-1.4.03/rng/Makefile 2010-02-06 00:19:48.241836878 +0100
-@@ -25,7 +25,7 @@ rng-api-fst.o: rng-alg-fst.o rng-api-fst
- $(CC) -c $(FLAGS) -o rng-api-fst.o rng-api-fst.c
+--- maradns-1.4.05.orig/rng/Makefile 2006-01-02 17:59:33.000000000 +0100
++++ maradns-1.4.05/rng/Makefile 2011-01-21 16:47:29.318658272 +0100
+@@ -19,13 +19,13 @@ superclean:
+ rm -f $(ROBJECTS) core make_32bit_tables $(TABLES)
+
+ rng-alg-fst.o: rng-alg-fst.c rng-alg-fst.h $(TABLES)
+- $(CC) -c $(FLAGS) -o rng-alg-fst.o rng-alg-fst.c
++ $(CC) -c $(CFLAGS) -o rng-alg-fst.o rng-alg-fst.c
+
+ rng-api-fst.o: rng-alg-fst.o rng-api-fst.h
+- $(CC) -c $(FLAGS) -o rng-api-fst.o rng-api-fst.c
++ $(CC) -c $(CFLAGS) -o rng-api-fst.o rng-api-fst.c
make_32bit_tables: make_32bit_tables.c
- $(CC) -o make_32bit_tables make_32bit_tables.c
-+ $(HOSTCC) -o make_32bit_tables make_32bit_tables.c
++ $(CC_FOR_BUILD) -o make_32bit_tables make_32bit_tables.c
rng-32bit-tables.h: make_32bit_tables
./make_32bit_tables > rng-32bit-tables.h