Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Honor HOST_CC.



details:   https://anonhg.NetBSD.org/src/rev/6e828ab2f34e
branches:  trunk
changeset: 356178:6e828ab2f34e
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu Sep 07 18:57:47 2017 +0000

description:
Honor HOST_CC.

diffstat:

 external/bsd/mdocml/dist/configure |  4 +++-
 tools/mandoc/Makefile              |  4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r eef45b4d1e65 -r 6e828ab2f34e external/bsd/mdocml/dist/configure
--- a/external/bsd/mdocml/dist/configure        Thu Sep 07 12:52:29 2017 +0000
+++ b/external/bsd/mdocml/dist/configure        Thu Sep 07 18:57:47 2017 +0000
@@ -40,7 +40,9 @@
 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=
diff -r eef45b4d1e65 -r 6e828ab2f34e tools/mandoc/Makefile
--- a/tools/mandoc/Makefile     Thu Sep 07 12:52:29 2017 +0000
+++ b/tools/mandoc/Makefile     Thu Sep 07 18:57:47 2017 +0000
@@ -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 @@
 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"



Home | Main Index | Thread Index | Old Index