summaryrefslogtreecommitdiff
path: root/net-misc/dhcp/files/dhcp-4.2.2-bind-build-flags.patch
blob: ae33638284b8d74dc4a9e8d03dd035337cf62b0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
bind sets up BUILD_XXX vars for building native tools, but then
doesn't use them for the "gen" tool

--- a/bind/lib/export/dns/Makefile.in
+++ b/bind/lib/export/dns/Makefile.in
@@ -166,7 +166,7 @@
 	./gen -s ${srcdir} > code.h
 
 gen: ${srcdir}/gen.c
-	${CC} ${ALL_CFLAGS} ${LDFLAGS} -o $@ ${srcdir}/gen.c ${LIBS}
+	${BUILD_CC} ${BUILD_CFLAGS} ${CINCLUDES} ${BUILD_LDFLAGS} -o $@ ${srcdir}/gen.c ${BUILD_LIBS}
 
 #We don't need rbtdb64 for this library
 #rbtdb64.@O@: rbtdb.c