summaryrefslogtreecommitdiffstats
path: root/patches/bind-9.3.2/bind-9.3.2-gen-on-host.diff
blob: d903d7c5f0729016ead8fe72447e54fb935b0234 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 
# Submitted-By: Robert Schwebel, 2006-01-02
# Committed-By: Robert Schwebel
#
# Error: 
#
# make[3]: Leaving directory `/home/rsc/svn/ptxdist-build-0.9-trunk/build-target/bind-9.3.2/lib/isccc'
# making all in /home/rsc/svn/ptxdist-build-0.9-trunk/build-target/bind-9.3.2/lib/dns
# make[3]: Entering directory `/home/rsc/svn/ptxdist-build-0.9-trunk/build-target/bind-9.3.2/lib/dns'
# arm-softfloat-linux-gnu-gcc  -I/home/rsc/svn/ptxdist-build-0.9-trunk/build-target/bind-9.3.2 -I. -Iinclude -I/home/rsc/svn/ptxdist-build-0.9-trunk/build-target/bind-9.3.2/lib/dns/include -I../../lib/dns/include -I/home/rsc/svn/ptxdist-build-0.9-trunk/build-target/bind-9.3.2/lib/isc/include -I../../lib/isc -I../../lib/isc/include -I../../lib/isc/unix/include -I../../lib/isc/nothreads/include     -DUSE_MD5    -g -O2  -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat  -L/home/rsc/svn/ptxdist-build-0.9-trunk/local/arm-softfloat-linux-gnu/lib -L/home/rsc/svn/ptxdist-build-0.9-trunk/local/arm-softfloat-linux-gnu/usr/lib -o gen ./gen.c -lnsl 
# ./gen -s . -t > include/dns/enumtype.h
# /bin/sh: ./gen: cannot execute binary file
# make[3]: *** [include/dns/enumtype.h] Error 126
# make[3]: Leaving directory `/home/rsc/svn/ptxdist-build-0.9-trunk/build-target/bind-9.3.2/lib/dns'
# make[2]: *** [subdirs] Error 1
# make[2]: Leaving directory `/home/rsc/svn/ptxdist-build-0.9-trunk/build-target/bind-9.3.2/lib'
# make[1]: *** [subdirs] Error 1
# make[1]: Leaving directory `/home/rsc/svn/ptxdist-build-0.9-trunk/build-target/bind-9.3.2'
# make: *** [/home/rsc/svn/ptxdist-build-0.9-trunk/state/bind.compile] Error 2
#
# Description: 
#
# Makefile.in doesn't care about gen being compiled with a host compiler
#
# State:
# 
# unknown
#

diff -urN bind-9.3.2/lib/dns/Makefile.in bind-9.3.2-ptx/lib/dns/Makefile.in
--- bind-9.3.2/lib/dns/Makefile.in	2004-12-09 05:07:15.000000000 +0100
+++ bind-9.3.2-ptx/lib/dns/Makefile.in	2006-01-02 09:53:56.000000000 +0100
@@ -156,7 +156,7 @@
 	./gen -s ${srcdir} > code.h
 
 gen: gen.c
-	${CC} ${ALL_CFLAGS} ${LDFLAGS} -o $@ ${srcdir}/gen.c ${LIBS}
+	${CC_FOR_BUILD} ${ALL_CFLAGS} ${LDFLAGS} -o $@ ${srcdir}/gen.c ${LIBS}
 
 rbtdb64.@O@: rbtdb.c