summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorgleb <gleb@FreeBSD.org>2012-05-21 08:10:42 +0000
committergleb <gleb@FreeBSD.org>2012-05-21 08:10:42 +0000
commit798e1b56b87cda33e4ee6dab500f91a7a6e99054 (patch)
treee821d9a35b9d12471c7ec7202f7bfde8ff0212ac /lib
parent8be39d9fef3c81743325cfbb19ccee234bafce41 (diff)
downloadFreeBSD-src-798e1b56b87cda33e4ee6dab500f91a7a6e99054.zip
FreeBSD-src-798e1b56b87cda33e4ee6dab500f91a7a6e99054.tar.gz
Disable NLS catalog use in libc if built with WITHOUT_NLS option.
Functions affected: strerror, strsignal, gai_strerror.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/Makefile2
1 files changed, 2 insertions, 0 deletions
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=
OpenPOWER on IntegriCloud