Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/grep don't build NLS if we don't need to



details:   https://anonhg.NetBSD.org/src/rev/e85c844a0eb2
branches:  trunk
changeset: 834380:e85c844a0eb2
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Aug 11 19:43:54 2018 +0000

description:
don't build NLS if we don't need to

diffstat:

 usr.bin/grep/Makefile |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 57bedd994495 -r e85c844a0eb2 usr.bin/grep/Makefile
--- a/usr.bin/grep/Makefile     Sat Aug 11 16:25:32 2018 +0000
+++ b/usr.bin/grep/Makefile     Sat Aug 11 19:43:54 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.5 2011/08/17 15:32:20 christos Exp $
+#      $NetBSD: Makefile,v 1.6 2018/08/11 19:43:54 christos Exp $
 #      $FreeBSD: head/usr.bin/grep/Makefile 210389 2010-07-22 19:11:57Z gabor $
 #      $OpenBSD: Makefile,v 1.6 2003/06/25 15:00:04 millert Exp $
 
@@ -20,6 +20,7 @@
 LDADD= -lz -lbz2
 DPADD= ${LIBZ} ${LIBBZ2}
 
+.if empty(HOST_CPPFLAGS:M*-DWITHOUT_NLS*)
 .PATH: ${.CURDIR}/nls
 
 NLS=   C.msg \
@@ -33,6 +34,7 @@
        ru_RU.KOI8-R.msg \
        uk_UA.UTF-8.msg \
        zh_CN.UTF-8.msg
+.endif
 
 COPTS.grep.c += -Wno-format-nonliteral
 COPTS.util.c += -Wno-format-nonliteral



Home | Main Index | Thread Index | Old Index