Module Name: src
Committed By: christos
Date: Sat Aug 11 19:43:54 UTC 2018
Modified Files:
src/usr.bin/grep: Makefile
Log Message:
don't build NLS if we don't need to
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/usr.bin/grep/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/grep/Makefile
diff -u src/usr.bin/grep/Makefile:1.5 src/usr.bin/grep/Makefile:1.6
--- src/usr.bin/grep/Makefile:1.5 Wed Aug 17 11:32:20 2011
+++ src/usr.bin/grep/Makefile Sat Aug 11 15:43:54 2018
@@ -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 @@ MLINKS= grep.1 egrep.1 \
LDADD= -lz -lbz2
DPADD= ${LIBZ} ${LIBBZ2}
+.if empty(HOST_CPPFLAGS:M*-DWITHOUT_NLS*)
.PATH: ${.CURDIR}/nls
NLS= C.msg \
@@ -33,6 +34,7 @@ NLS= C.msg \
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