summaryrefslogtreecommitdiff
path: root/package/utils/busybox/Makefile
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2017-04-12 09:02:30 -0700
committerJo-Philipp Wich <jo@mein.io>2017-04-21 12:24:17 +0200
commit449880e0ffe528999c17f6ad6e4f87f1f4c46cdd (patch)
treec1bff42d4784ef35fe10888216287d3113cf59c0 /package/utils/busybox/Makefile
parent9437fbb7ab2c979b5b464c031d50a243706799ab (diff)
downloadmtk-20170518-449880e0ffe528999c17f6ad6e4f87f1f4c46cdd.zip
mtk-20170518-449880e0ffe528999c17f6ad6e4f87f1f4c46cdd.tar.gz
mtk-20170518-449880e0ffe528999c17f6ad6e4f87f1f4c46cdd.tar.bz2
busybox: Move libresolv detection to LEDE Makefile
Since the LEDE nslookup applet is already specific to LEDE, move the libresolv detection into the busybox Makefile that LEDE uses. This fixes builds with external toolchains that don't automatically search for headers and/or libraries without being told so. Fixes: de5b8e5d2fe1 ("busybox: add musl compatible nslookup replacement") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Diffstat (limited to 'package/utils/busybox/Makefile')
-rw-r--r--package/utils/busybox/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/utils/busybox/Makefile b/package/utils/busybox/Makefile
index c1e60ea..fdac78f 100644
--- a/package/utils/busybox/Makefile
+++ b/package/utils/busybox/Makefile
@@ -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)" \