| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.gnuhost,v 1.39 2012/06/19 21:48:33 hans Exp $ | | 1 | # $NetBSD: Makefile.gnuhost,v 1.40 2013/08/06 21:47:01 apb 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 | # |
| @@ -46,27 +46,27 @@ _GNU_CFGSRC!= find ${GNUHOSTDIST} ${FIND | | | @@ -46,27 +46,27 @@ _GNU_CFGSRC!= find ${GNUHOSTDIST} ${FIND |
46 | .endif | | 46 | .endif |
47 | | | 47 | |
48 | CONFIGURE_ENV+= \ | | 48 | CONFIGURE_ENV+= \ |
49 | AR=${HOST_AR:Q} \ | | 49 | AR=${HOST_AR:Q} \ |
50 | AWK=${TOOL_AWK:Q} \ | | 50 | AWK=${TOOL_AWK:Q} \ |
51 | CC=${HOST_CC:Q} \ | | 51 | CC=${HOST_CC:Q} \ |
52 | CFLAGS=${HOST_CFLAGS:Q} \ | | 52 | CFLAGS=${HOST_CFLAGS:Q} \ |
53 | CPPFLAGS=${HOST_CPPFLAGS:Q} \ | | 53 | CPPFLAGS=${HOST_CPPFLAGS:Q} \ |
54 | CXX=${HOST_CXX:Q} \ | | 54 | CXX=${HOST_CXX:Q} \ |
55 | CXXFLAGS=${HOST_CXXFLAGS:Q} \ | | 55 | CXXFLAGS=${HOST_CXXFLAGS:Q} \ |
56 | INSTALL=${HOST_INSTALL_FILE:Q} \ | | 56 | INSTALL=${HOST_INSTALL_FILE:Q} \ |
57 | LDFLAGS=${HOST_LDFLAGS:Q} \ | | 57 | LDFLAGS=${HOST_LDFLAGS:Q} \ |
58 | LEX=${LEX:Q} \ | | 58 | LEX=${LEX:Q} \ |
59 | M4=${TOOL_M4:Q} \ | | 59 | M4=${TOOL_M4:Q}" -g -D__gnu__" \ |
60 | MAKE=${MAKE_PROGRAM:Q} \ | | 60 | MAKE=${MAKE_PROGRAM:Q} \ |
61 | PATH="${TOOLDIR}/bin:$$PATH" \ | | 61 | PATH="${TOOLDIR}/bin:$$PATH" \ |
62 | RANLIB=${HOST_RANLIB:Q} \ | | 62 | RANLIB=${HOST_RANLIB:Q} \ |
63 | YACC=${YACC:Q} | | 63 | YACC=${YACC:Q} |
64 | | | 64 | |
65 | BUILD_ENV+= ${CONFIGURE_ENV} | | 65 | BUILD_ENV+= ${CONFIGURE_ENV} |
66 | | | 66 | |
67 | CONFIGURE_ARGS+=--prefix=${TOOLDIR} | | 67 | CONFIGURE_ARGS+=--prefix=${TOOLDIR} |
68 | .if ${MKPIC} == "no" | | 68 | .if ${MKPIC} == "no" |
69 | CONFIGURE_ARGS+=--disable-shared | | 69 | CONFIGURE_ARGS+=--disable-shared |
70 | .endif | | 70 | .endif |
71 | | | 71 | |
72 | .if ${MAKE_PROGRAM} == ${MAKE} | | 72 | .if ${MAKE_PROGRAM} == ${MAKE} |