From a59d48422fc6073f254a1f9cb8580f23ab921568 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Thu, 19 Nov 2009 18:03:00 +0100 Subject: libnsl: add knob to disable it It's a dummy either way. Signed-off-by: Bernhard Reutner-Fischer --- extra/Configs/Config.in | 6 ++++++ libnsl/Makefile.in | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/extra/Configs/Config.in b/extra/Configs/Config.in index 7f14b9c3b..833d180e4 100644 --- a/extra/Configs/Config.in +++ b/extra/Configs/Config.in @@ -1191,6 +1191,12 @@ config UCLIBC_HAS_RESOLV_STUB help Provide a dummy resolv library. +config UCLIBC_HAS_LIBNSL_STUB + bool "Provide libnsl stub" + default n + help + Provide a dummy nsl library. + endif diff --git a/libnsl/Makefile.in b/libnsl/Makefile.in index fac88ce55..24d530a83 100644 --- a/libnsl/Makefile.in +++ b/libnsl/Makefile.in @@ -28,8 +28,8 @@ libnsl-a-y := $(libnsl_OBJ) endif libnsl-so-y := $(libnsl_OBJ:.o=.os) -lib-a-y += $(top_builddir)lib/libnsl.a -lib-so-y += $(top_builddir)lib/libnsl.so +lib-a-$(UCLIBC_HAS_LIBNSL_STUB) += $(top_builddir)lib/libnsl.a +lib-so-$(UCLIBC_HAS_LIBNSL_STUB) += $(top_builddir)lib/libnsl.so objclean-y += libnsl_clean ifeq ($(DOPIC),y) -- cgit v1.2.3