summaryrefslogtreecommitdiffstats
path: root/package/bind/0002-cross.patch
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2014-11-28 07:25:27 -0300
committerPeter Korsgaard <peter@korsgaard.com>2014-11-28 12:07:52 +0100
commit6045904752b06a8b8e52ba8fc2e49a8548964e8d (patch)
tree7a23da573cbed940cef479c5a9958ae45dd197c0 /package/bind/0002-cross.patch
parent43f86236969f028a9009d6558c25dd612a1d4f16 (diff)
downloadbuildroot-6045904752b06a8b8e52ba8fc2e49a8548964e8d.tar.gz
buildroot-6045904752b06a8b8e52ba8fc2e49a8548964e8d.zip
bind: not available for static builds
Fixes: http://autobuild.buildroot.net/results/e27/e27111f484f72c77d2179fa1a29ea7b5271ff9fa/ While at it rename patches to new convention. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/bind/0002-cross.patch')
-rw-r--r--package/bind/0002-cross.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/bind/0002-cross.patch b/package/bind/0002-cross.patch
new file mode 100644
index 0000000000..5b4b1cd836
--- /dev/null
+++ b/package/bind/0002-cross.patch
@@ -0,0 +1,18 @@
+Use host compiler to build 'gen' since it's run when building.
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+
+diff -Nura bind-9.5.1-P1/lib/dns/Makefile.in bind-9.5.1-P1.gencross/lib/dns/Makefile.in
+--- bind-9.5.1-P1/lib/dns/Makefile.in 2007-09-11 22:09:08.000000000 -0300
++++ bind-9.5.1-P1.gencross/lib/dns/Makefile.in 2009-03-04 16:35:23.000000000 -0200
+@@ -160,8 +160,8 @@
+ ./gen -s ${srcdir} > code.h
+
+ gen: gen.c
+- ${BUILD_CC} ${BUILD_CFLAGS} -I${top_srcdir}/lib/isc/include \
+- ${BUILD_CPPFLAGS} ${BUILD_LDFLAGS} -o $@ ${srcdir}/gen.c ${BUILD_LIBS}
++ ${HOSTCC} ${HOST_CFLAGS} -I${top_srcdir}/lib/isc/include \
++ ${HOST_LDFLAGS} -o $@ ${srcdir}/gen.c
+
+ rbtdb64.@O@: rbtdb.c
+
OpenPOWER on IntegriCloud