Module Name: src Committed By: joerg Date: Thu Sep 7 18:57:47 UTC 2017
Modified Files: src/external/bsd/mdocml/dist: configure src/tools/mandoc: Makefile Log Message: Honor HOST_CC. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/external/bsd/mdocml/dist/configure cvs rdiff -u -r1.9 -r1.10 src/tools/mandoc/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/bsd/mdocml/dist/configure diff -u src/external/bsd/mdocml/dist/configure:1.9 src/external/bsd/mdocml/dist/configure:1.10 --- src/external/bsd/mdocml/dist/configure:1.9 Sun Mar 19 16:51:45 2017 +++ src/external/bsd/mdocml/dist/configure Thu Sep 7 18:57:47 2017 @@ -40,7 +40,9 @@ OSNAME= MAKEFLAGS= UTF8_LOCALE= -CC=`printf "all:\\n\\t@echo \\\$(CC)\\n" | env -i make -sf -` +if [ -z "${CC}" ]; then + CC=`printf "all:\\n\\t@echo \\\$(CC)\\n" | env -i make -sf -` +fi CFLAGS="-g -W -Wall -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings" CFLAGS="${CFLAGS} -Wno-unused-parameter" LDADD= Index: src/tools/mandoc/Makefile diff -u src/tools/mandoc/Makefile:1.9 src/tools/mandoc/Makefile:1.10 --- src/tools/mandoc/Makefile:1.9 Wed Jan 27 21:24:59 2016 +++ src/tools/mandoc/Makefile Thu Sep 7 18:57:47 2017 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2016/01/27 21:24:59 christos Exp $ +# $NetBSD: Makefile,v 1.10 2017/09/07 18:57:47 joerg Exp $ HOSTPROGNAME= ${_TOOL_PREFIX}mandoc HOST_SRCDIR= external/bsd/mdocml/bin/mandoc @@ -17,6 +17,6 @@ DPSRCS+= config.h CLEANFILES+= config.log config.h Makefile.local config.h: configure - SRCDIR=${DISTDIR} ${HOST_SH} ${DISTDIR}/configure + SRCDIR=${DISTDIR} CC=${HOST_CC} ${HOST_SH} ${DISTDIR}/configure .include "${.CURDIR}/../Makefile.host"