Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Aug 2018 18:19:21 +0000 (UTC)
From:      Alex Richardson <arichardson@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r338269 - head
Message-ID:  <201808231819.w7NIJLZt071997@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: arichardson
Date: Thu Aug 23 18:19:21 2018
New Revision: 338269
URL: https://svnweb.freebsd.org/changeset/base/338269

Log:
  Only bootstrap localedef if ${MK_LOCALES} != "no"
  
  During the build it is only used by share/ctypedef and share/colldef
  which will not be built if ${MK_LOCALE} == "no". This saves a tiny bit
  of time when building without locales.
  
  Approved By:	jhb (mentor)

Modified:
  head/Makefile.inc1

Modified: head/Makefile.inc1
==============================================================================
--- head/Makefile.inc1	Thu Aug 23 18:19:10 2018	(r338268)
+++ head/Makefile.inc1	Thu Aug 23 18:19:21 2018	(r338269)
@@ -2031,6 +2031,10 @@ ${_bt}-usr.bin/yacc: ${_bt}-lib/liby
 _gensnmptree=	usr.sbin/bsnmpd/gensnmptree
 .endif
 
+.if ${MK_LOCALES} != "no"
+_localedef=	usr.bin/localedef
+.endif
+
 # We need to build tblgen when we're building clang or lld, either as
 # bootstrap tools, or as the part of the normal build.
 .if ${MK_CLANG_BOOTSTRAP} != "no" || ${MK_CLANG} != "no" || \
@@ -2092,7 +2096,7 @@ bootstrap-tools: .PHONY
     ${_crunchgen} \
     ${_nmtree} \
     ${_vtfontcvt} \
-    usr.bin/localedef
+    ${_localedef}
 ${_bt}-${_tool}: .PHONY .MAKE
 	${_+_}@${ECHODIR} "===> ${_tool} (obj,all,install)"; \
 		cd ${.CURDIR}/${_tool}; \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808231819.w7NIJLZt071997>