Browse Source

No need for a libresolv stub

  libresolv is just a stub anyway, default to not building it.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer 14 years ago
parent
commit
0b03a65afa
2 changed files with 8 additions and 0 deletions
  1. 6 0
      extra/Configs/Config.in
  2. 2 0
      libresolv/Makefile.in

+ 6 - 0
extra/Configs/Config.in

@@ -1183,6 +1183,12 @@ config UCLIBC_HAS_EXTRA_COMPAT_RES_STATE
 	  Answer Y if selecting UCLIBC_HAS_COMPAT_RES_STATE is not enough.
 	  As far as I can say, this should never be needed.
 
+config UCLIBC_HAS_RESOLV_STUB
+	bool "Provide libresolv stub"
+	default n
+	help
+	  Provide a dummy resolv library.
+
 endif
 
 

+ 2 - 0
libresolv/Makefile.in

@@ -28,8 +28,10 @@ libresolv-a-y := $(libresolv_OBJ)
 endif
 libresolv-so-y := $(libresolv_OBJ:.o=.os)
 
+ifeq ($(UCLIBC_HAS_RESOLV_STUB),y)
 lib-a-y += $(top_builddir)lib/libresolv.a
 lib-so-y += $(top_builddir)lib/libresolv.so
+endif
 objclean-y += libresolv_clean
 
 ifeq ($(DOPIC),y)