2020-11-04 20:47:27 +01:00
|
|
|
From 505cc9fcadda5607dc4c5bacb03928c0b35162a8 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
|
|
|
Date: Wed, 4 Nov 2020 17:51:38 +0100
|
|
|
|
Subject: [PATCH] Use host compiler to build 'gen' since it's run when
|
|
|
|
building.
|
2013-07-19 21:41:20 +02:00
|
|
|
|
|
|
|
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
2019-09-18 19:01:29 +02:00
|
|
|
[Fabrice: updated for 9.11.10]
|
|
|
|
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
2020-11-04 20:47:27 +01:00
|
|
|
Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
|
|
|
|
---
|
|
|
|
lib/dns/Makefile.in | 6 ++----
|
|
|
|
1 file changed, 2 insertions(+), 4 deletions(-)
|
2013-07-19 21:41:20 +02:00
|
|
|
|
2020-11-04 20:47:27 +01:00
|
|
|
diff --git a/lib/dns/Makefile.in b/lib/dns/Makefile.in
|
|
|
|
index 8fc4e94f26..4ac92857e0 100644
|
|
|
|
--- a/lib/dns/Makefile.in
|
|
|
|
+++ b/lib/dns/Makefile.in
|
|
|
|
@@ -184,10 +184,8 @@ code.h: gen
|
2019-09-18 19:01:29 +02:00
|
|
|
./gen -s ${srcdir} > code.h || { rm -f $@ ; exit 1; }
|
2020-11-04 20:47:27 +01:00
|
|
|
|
2009-03-05 13:11:36 +01:00
|
|
|
gen: gen.c
|
|
|
|
- ${BUILD_CC} ${BUILD_CFLAGS} -I${top_srcdir}/lib/isc/include \
|
2019-09-18 19:01:29 +02:00
|
|
|
- ${LFS_CFLAGS} ${LFS_LDFLAGS} \
|
|
|
|
- ${BUILD_CPPFLAGS} ${BUILD_LDFLAGS} -o $@ ${srcdir}/gen.c \
|
|
|
|
- ${BUILD_LIBS} ${LFS_LIBS}
|
2009-03-05 13:11:36 +01:00
|
|
|
+ ${HOSTCC} ${HOST_CFLAGS} -I${top_srcdir}/lib/isc/include \
|
|
|
|
+ ${HOST_LDFLAGS} -o $@ ${srcdir}/gen.c
|
2020-11-04 20:47:27 +01:00
|
|
|
|
2019-09-18 19:01:29 +02:00
|
|
|
timestamp: include libdns.@A@
|
|
|
|
touch timestamp
|
2020-11-04 20:47:27 +01:00
|
|
|
--
|
|
|
|
2.29.1
|
2013-07-19 21:41:20 +02:00
|
|
|
|