[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [PATCH] build system: fix linking on Red Hat systems
From: Michael Tokarev <mjt () tls ! msk ! ru>
Date: 2022-12-31 13:41:16
Message-ID: 3c292a5c-eb81-7814-bcf5-6a672ed8bc78 () msgid ! tls ! msk ! ru
[Download RAW message or body]
31.12.2022 14:23, David Laight wrote:
[]
> You don't need to check whether libresolv is needed just whether
> it exists.
We only need to worry about all this only if nslookup applet is in use
(this is already the case in the Makefile), - this is what I mean, if
we don't have nslookup we don't have to check for -lresolv.
Checking for -lresolv existance is done by trying to link with -lresolv
because it can be in different system-specific place which is known by
the linker but not by the Makefile.
> The linker won't (usually) add the NEEDED entry unless the library
> actually defines some undefined symbols.
It is only true when --when-needed is in effect. Historically, for many
decades, it werent. I think ubuntu turned it on some years back (maybe
when switching from ld to gold), but that's details. FWIW.
/mjt
_______________________________________________
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