| @@ -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 | |
53 | CONFIGURE_ENV+= \ | | 53 | CONFIGURE_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 | |
71 | BUILD_ENV+= ${CONFIGURE_ENV} | | 72 | BUILD_ENV+= ${CONFIGURE_ENV} |
72 | | | 73 | |
73 | CONFIGURE_ARGS+=--prefix=${TOOLDIR} | | 74 | CONFIGURE_ARGS+=--prefix=${TOOLDIR} |
74 | .if ${MKPIC} == "no" | | 75 | .if ${MKPIC} == "no" |
75 | CONFIGURE_ARGS+=--disable-shared | | 76 | CONFIGURE_ARGS+=--disable-shared |
76 | .endif | | 77 | .endif |
77 | | | 78 | |