[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [PATCH] use libresolv on non-linux too
From:       Michael Tokarev <mjt () tls ! msk ! ru>
Date:       2022-11-04 16:49:41
Message-ID: 20221104164941.95861-1-mjt () msgid ! tls ! msk ! ru
[Download RAW message or body]

nslookup uses symbols from libresolv, no matter it is
on linux or not. This also eliminates hackish way to
detect linux.
---
 Makefile.flags | 2 --
 1 file changed, 2 deletions(-)

diff --git a/Makefile.flags b/Makefile.flags
index 84cb00a75..be0a3c4bb 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -184,10 +184,8 @@ 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
-endif
 
 ifeq ($(CONFIG_EFENCE),y)
 LDLIBS += efence
-- 
2.30.2

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic