Re: [PATCH] build system: fix linking on Red Hat systems

2022-12-31 Thread Michael Tokarev
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

RE: [PATCH] build system: fix linking on Red Hat systems

2022-12-31 Thread David Laight
From: Michael Tokarev > Sent: 31 December 2022 09:44 > > 31.12.2022 11:48, Ron Yorston wrote: > > Commit 77216c368 (Fix non-Linux builds) made linking with libresolv > > conditional on the output of 'gcc -dumpmachine' containing 'gnu'. > > > > This broke builds on Red Hat systems (Fedora, RHEL)

Re: [PATCH] build system: fix linking on Red Hat systems

2022-12-31 Thread Michael Tokarev
31.12.2022 11:48, Ron Yorston wrote: Commit 77216c368 (Fix non-Linux builds) made linking with libresolv conditional on the output of 'gcc -dumpmachine' containing 'gnu'. This broke builds on Red Hat systems (Fedora, RHEL) and derivatives (CentOS, Rocky). Such systems report a machine type of

[PATCH] build system: fix linking on Red Hat systems

2022-12-31 Thread Ron Yorston
Commit 77216c368 (Fix non-Linux builds) made linking with libresolv conditional on the output of 'gcc -dumpmachine' containing 'gnu'. This broke builds on Red Hat systems (Fedora, RHEL) and derivatives (CentOS, Rocky). Such systems report a machine type of the form 'x86_64-redhat-linux'. Check