[git commit] Makefile.flags: add resolv to LDLIBS for linux compilers too (not only gnu ones)
Denys Vlasenko
vda.linux at googlemail.com
Mon Jan 2 16:10:04 UTC 2023
commit: https://git.busybox.net/busybox/commit/?id=8ed57db65ba66709d3b4061c4f03766f1fe58780
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
Makefile.flags | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Makefile.flags b/Makefile.flags
index 50137a78e..1cec5ba20 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -184,6 +184,9 @@ LDLIBS += $(if $(SELINUX_LIBS),$(SELINUX_LIBS:-l%=%),$(SELINUX_PC_MODULES:lib%=%
endif
ifeq ($(CONFIG_FEATURE_NSLOOKUP_BIG),y)
+ifneq (,$(findstring linux,$(shell $(CC) $(CFLAGS) -dumpmachine)))
+LDLIBS += resolv
+endif
ifneq (,$(findstring gnu,$(shell $(CC) $(CFLAGS) -dumpmachine)))
LDLIBS += resolv
endif
More information about the busybox-cvs
mailing list