summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.flags2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.flags b/Makefile.flags
index 5673bc4..7a445c3 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -181,7 +181,7 @@ LDLIBS += $(if $(SELINUX_LIBS),$(SELINUX_LIBS:-l%=%),$(SELINUX_PC_MODULES:lib%=%
endif
ifeq ($(CONFIG_FEATURE_NSLOOKUP_BIG),y)
-ifeq ($(CONFIG_UNAME_OSNAME),Linux)
+ifneq (,$(findstring linux,$(shell $(CC) $(CFLAGS) -dumpmachine)))
LDLIBS += resolv
endif
endif