summaryrefslogtreecommitdiff
path: root/net/isc-dhcp4/patches/patch-bind_bind-9.9.8-P4_lib_export_dns_Makefile.in
blob: 5aa2592ea86085d8e4cbed3145442da2ed148ef2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-bind_bind-9.9.8-P4_lib_export_dns_Makefile.in,v 1.1 2016/03/30 15:55:44 taca Exp $

Build gen with BUILD_CC and the associated BUILD_* flags so it can run
on the build platform when cross-compiling.

--- bind/bind-9.9.8-P4/lib/export/dns/Makefile.in.orig	2016-02-29 00:30:52.000000000 +0000
+++ bind/bind-9.9.8-P4/lib/export/dns/Makefile.in
@@ -168,7 +168,8 @@ code.h:	gen
 	./gen -s ${srcdir} > code.h
 
 gen: ${srcdir}/gen.c
-	${CC} ${ALL_CFLAGS} ${LDFLAGS} -o $@ ${srcdir}/gen.c ${LIBS}
+	${BUILD_CC} ${BUILD_CFLAGS} -I${top_srcdir}/lib/isc/include \
+	${BUILD_CPPFLAGS} ${BUILD_LDFLAGS} -o $@ ${srcdir}/gen.c ${BUILD_LIBS}
 
 #We don't need rbtdb64 for this library
 #rbtdb64.@O@: rbtdb.c