busybox: Move libresolv detection to LEDE Makefile
[openwrt/openwrt.git] / package / utils / busybox / Makefile
index c1e60ea87b08f4db716b0a07764b0bc4ec64382a..fdac78fcf65cd97b0a82e3a300bc23dcab159e2a 100644 (file)
@@ -85,6 +85,12 @@ ifdef CONFIG_BUSYBOX_CONFIG_PAM
   LDLIBS += pam pam_misc pthread
 endif
 
+ifdef CONFIG_BUSYBOX_DEFAULT_NSLOOKUP_LEDE
+  ifeq ($(CONFIG_USE_GLIBC),y)
+       LDLIBS += resolv
+  endif
+endif
+
 define Build/Compile
        +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
                CC="$(TARGET_CC)" \