From 798e1b56b87cda33e4ee6dab500f91a7a6e99054 Mon Sep 17 00:00:00 2001 From: gleb Date: Mon, 21 May 2012 08:10:42 +0000 Subject: Disable NLS catalog use in libc if built with WITHOUT_NLS option. Functions affected: strerror, strsignal, gai_strerror. --- lib/libc/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libc/Makefile b/lib/libc/Makefile index 7684eb9..ed37053 100644 --- a/lib/libc/Makefile +++ b/lib/libc/Makefile @@ -26,7 +26,9 @@ SHLIB_MAJOR= 7 WARNS?= 2 CFLAGS+=-I${.CURDIR}/include -I${.CURDIR}/../../include CFLAGS+=-I${.CURDIR}/${LIBC_ARCH} +.if ${MK_NLS} != "no" CFLAGS+=-DNLS +.endif CLEANFILES+=tags INSTALL_PIC_ARCHIVE= PRECIOUSLIB= -- cgit v1.1