Blame view

buildroot/buildroot-2016.08.1/package/dhcp/0003-bind-host-cc.patch 1.31 KB
6b13f685e   김민수   BSP 최초 추가
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
  ensure host compiler is used
  
  dns/Makefile.in patch is derived from:
  http://wiki.beyondlogic.org/patches/dhcp-4.3.0b1.bind_arm-linux-gnueabi.patch
  
  This patch is already accepted upstream and will be included in the next
  release:
  --[snip]--
  From Francis Dupont via RT <dhcp-suggest@isc.org>
  To   rdkehn@yahoo.com 
  
  Message body
  It was fixed on the master branch sometimes ago.
  Quoting master RELNOTES:
  
  - Made the embedded bind libraries able to be cross compiled
    (please refer to the bind9 documentation to learn how to cross
    compile DHCP and its bind library dependency).
    [ISC-Bugs #38836]
  
  This is in the Changes since 4.3.3 so for the next release.
  --[snip]--
  
  Signed-off-by: Doug Kehn <rdkehn@yahoo.com>
  
  Index: dhcp-4.3.3-P1/bind/bind-9.9.7-P3/lib/export/dns/Makefile.in
  ===================================================================
  --- dhcp-4.3.3-P1.orig/bind/bind-9.9.7-P3/lib/export/dns/Makefile.in
  +++ dhcp-4.3.3-P1/bind/bind-9.9.7-P3/lib/export/dns/Makefile.in
  @@ -168,7 +168,9 @@ 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