[git commit] Do not add -lresolv on non-Linux systems
Denys Vlasenko
vda.linux at googlemail.com
Mon Jan 4 12:28:28 UTC 2021
commit: https://git.busybox.net/busybox/commit/?id=054493350124d36e531a26e982518696c038a6c1
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
On FreeBSD getaddrinfo and friends are part of libc.
Other OS-es will also have own dependencies
Signed-off-by: Alex Samorukov <samm at os2.kiev.ua>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
Makefile.flags | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Makefile.flags b/Makefile.flags
index 6ff4d7239..5673bc48a 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -181,8 +181,10 @@ LDLIBS += $(if $(SELINUX_LIBS),$(SELINUX_LIBS:-l%=%),$(SELINUX_PC_MODULES:lib%=%
endif
ifeq ($(CONFIG_FEATURE_NSLOOKUP_BIG),y)
+ifeq ($(CONFIG_UNAME_OSNAME),Linux)
LDLIBS += resolv
endif
+endif
ifeq ($(CONFIG_EFENCE),y)
LDLIBS += efence
More information about the busybox-cvs
mailing list