Makefile.flags: add resolv to LDLIBS for linux compilers too (not only gnu ones)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/Makefile.flags b/Makefile.flags
index 50137a7..1cec5ba 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -184,6 +184,9 @@
 endif
 
 ifeq ($(CONFIG_FEATURE_NSLOOKUP_BIG),y)
+ifneq (,$(findstring linux,$(shell $(CC) $(CFLAGS) -dumpmachine)))
+LDLIBS += resolv
+endif
 ifneq (,$(findstring gnu,$(shell $(CC) $(CFLAGS) -dumpmachine)))
 LDLIBS += resolv
 endif