Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-10-16 03:04:59 +0300
committerDenys Vlasenko <vda.linux@googlemail.com>2022-11-29 16:10:22 +0300
commit77216c368f3ae65c3a9fc504d28d3fadd46d6d8d (patch)
tree8f4bf1ca9cd3aea68214bc93ab5a586401979f47 /Makefile.flags
parent75fbff1326674b768cee66f32e3799d5bff5e194 (diff)
Fix non-Linux builds
Various tools are Linuxish and should thus only attempted to build on Linux only. Some features are also Linux-only. Also, libresolv is used on all GNU platforms, notably GNU/Hurd and GNU/kfreeBSD. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'Makefile.flags')
-rw-r--r--Makefile.flags2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.flags b/Makefile.flags
index 84cb00a75..50137a78e 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -184,7 +184,7 @@ 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)))
+ifneq (,$(findstring gnu,$(shell $(CC) $(CFLAGS) -dumpmachine)))
LDLIBS += resolv
endif
endif