diff options
author | Alex Samorukov <samm@os2.kiev.ua> | 2021-01-04 01:22:24 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-01-04 13:28:28 +0100 |
commit | 054493350124d36e531a26e982518696c038a6c1 (patch) | |
tree | aa67a08cc8ba7cb99b2ed765498f7d458d3c2de0 | |
parent | 4e039bab375a273344b6c847daa04f13d8317c04 (diff) | |
download | busybox-054493350124d36e531a26e982518696c038a6c1.tar.gz |
Do not add -lresolv on non-Linux systems
On FreeBSD getaddrinfo and friends are part of libc.
Other OS-es will also have own dependencies
Signed-off-by: Alex Samorukov <samm@os2.kiev.ua>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | Makefile.flags | 2 |
1 files changed, 2 insertions, 0 deletions
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 |