diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2023-01-02 17:10:04 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2023-01-02 17:10:04 +0100 |
commit | 8ed57db65ba66709d3b4061c4f03766f1fe58780 (patch) | |
tree | 346c9a94656521516819b3d02d6178fb2add1344 | |
parent | 9b2d766e0ecb222d25a43333287835452e43f8a9 (diff) | |
download | busybox-w32-8ed57db65ba66709d3b4061c4f03766f1fe58780.tar.gz busybox-w32-8ed57db65ba66709d3b4061c4f03766f1fe58780.tar.bz2 busybox-w32-8ed57db65ba66709d3b4061c4f03766f1fe58780.zip |
Makefile.flags: add resolv to LDLIBS for linux compilers too (not only gnu ones)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | Makefile.flags | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.flags b/Makefile.flags index 50137a78e..1cec5ba20 100644 --- a/Makefile.flags +++ b/Makefile.flags | |||
@@ -184,6 +184,9 @@ LDLIBS += $(if $(SELINUX_LIBS),$(SELINUX_LIBS:-l%=%),$(SELINUX_PC_MODULES:lib%=% | |||
184 | endif | 184 | endif |
185 | 185 | ||
186 | ifeq ($(CONFIG_FEATURE_NSLOOKUP_BIG),y) | 186 | ifeq ($(CONFIG_FEATURE_NSLOOKUP_BIG),y) |
187 | ifneq (,$(findstring linux,$(shell $(CC) $(CFLAGS) -dumpmachine))) | ||
188 | LDLIBS += resolv | ||
189 | endif | ||
187 | ifneq (,$(findstring gnu,$(shell $(CC) $(CFLAGS) -dumpmachine))) | 190 | ifneq (,$(findstring gnu,$(shell $(CC) $(CFLAGS) -dumpmachine))) |
188 | LDLIBS += resolv | 191 | LDLIBS += resolv |
189 | endif | 192 | endif |