summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extra/Configs/Config.in6
-rw-r--r--libnsl/Makefile.in4
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)