Sun Oct 14 10:23:32 2018 UTC ()
Add FLEX to the configure env, from Lloyd Parkes on tech-toolchain.
Some configure scripts seem to need both LEX and FLEX.


(martin)
diff -r1.48 -r1.49 src/tools/Makefile.gnuhost

cvs diff -r1.48 -r1.49 src/tools/Makefile.gnuhost (expand / switch to unified diff)

--- src/tools/Makefile.gnuhost 2018/04/17 10:08:54 1.48
+++ src/tools/Makefile.gnuhost 2018/10/14 10:23:32 1.49
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile.gnuhost,v 1.48 2018/04/17 10:08:54 maya Exp $ 1# $NetBSD: Makefile.gnuhost,v 1.49 2018/10/14 10:23:32 martin Exp $
2# 2#
3# Rules used when building a GNU host package. Expects MODULE to be set. 3# Rules used when building a GNU host package. Expects MODULE to be set.
4# 4#
5# There's not a lot we can do to build reliably in the face of many 5# There's not a lot we can do to build reliably in the face of many
6# available configuration options. To be as low-overhead as possible, 6# available configuration options. To be as low-overhead as possible,
7# we follow the following scheme: 7# we follow the following scheme:
8# 8#
9# * Configuration is only re-run when an autoconf source file (such as 9# * Configuration is only re-run when an autoconf source file (such as
10# "configure" or "config.sub") is changed. 10# "configure" or "config.sub") is changed.
11# 11#
12# * "config.status" is run to rebuild Makefiles and .h files if an 12# * "config.status" is run to rebuild Makefiles and .h files if an
13# autoconf-parsed file (such as Makefile.in) is changed. 13# autoconf-parsed file (such as Makefile.in) is changed.
14# 14#
@@ -52,26 +52,27 @@ _GNU_CFGSRC!= find ${GNUHOSTDIST} ${FIND @@ -52,26 +52,27 @@ _GNU_CFGSRC!= find ${GNUHOSTDIST} ${FIND
52 52
53CONFIGURE_ENV+= \ 53CONFIGURE_ENV+= \
54 AR=${HOST_AR:Q} \ 54 AR=${HOST_AR:Q} \
55 AWK=${TOOL_AWK:Q} \ 55 AWK=${TOOL_AWK:Q} \
56 CC=${HOST_CC:Q} \ 56 CC=${HOST_CC:Q} \
57 CFLAGS=${HOST_CFLAGS:Q} \ 57 CFLAGS=${HOST_CFLAGS:Q} \
58 CONFIG_SHELL=${HOST_SH:Q} \ 58 CONFIG_SHELL=${HOST_SH:Q} \
59 CPPFLAGS=${HOST_CPPFLAGS:Q} \ 59 CPPFLAGS=${HOST_CPPFLAGS:Q} \
60 CXX=${HOST_CXX:Q} \ 60 CXX=${HOST_CXX:Q} \
61 CXXFLAGS=${HOST_CXXFLAGS:Q} \ 61 CXXFLAGS=${HOST_CXXFLAGS:Q} \
62 INSTALL=${HOST_INSTALL_FILE:Q} \ 62 INSTALL=${HOST_INSTALL_FILE:Q} \
63 LDFLAGS=${HOST_LDFLAGS:Q} \ 63 LDFLAGS=${HOST_LDFLAGS:Q} \
64 LEX=${LEX:Q} \ 64 LEX=${LEX:Q} \
 65 FLEX=${LEX:Q} \
65 M4=${TOOL_M4:Q} \ 66 M4=${TOOL_M4:Q} \
66 MAKE=${MAKE_PROGRAM:Q} \ 67 MAKE=${MAKE_PROGRAM:Q} \
67 PATH="${TOOLDIR}/bin:$$PATH" \ 68 PATH="${TOOLDIR}/bin:$$PATH" \
68 RANLIB=${HOST_RANLIB:Q} \ 69 RANLIB=${HOST_RANLIB:Q} \
69 YACC=${YACC:Q} 70 YACC=${YACC:Q}
70 71
71BUILD_ENV+= ${CONFIGURE_ENV} 72BUILD_ENV+= ${CONFIGURE_ENV}
72 73
73CONFIGURE_ARGS+=--prefix=${TOOLDIR} 74CONFIGURE_ARGS+=--prefix=${TOOLDIR}
74.if ${MKPIC} == "no" 75.if ${MKPIC} == "no"
75CONFIGURE_ARGS+=--disable-shared 76CONFIGURE_ARGS+=--disable-shared
76.endif 77.endif
77 78