[PATCH v3] Makefile.flags: fix the OS detection for libresolv
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Sun Feb 7 08:46:28 UTC 2021
On Fri, 22 Jan 2021 22:24:05 +0100
Martin Kaiser <lists at kaiser.cx> wrote:
> From: Martin Kaiser <martin at kaiser.cx>
>
> 054493350 ("Do not add -lresolv on non-Linux systems") adds a condition
> to link with libresolv only on linux systems.
>
> This patch uses the output of $CC -dumpmachine to detect the target platform
> for which we compile. Both gcc and clang support -dumpmachine. Like the
> original patch, we link against libresolv only if our target platform is
> linux-based.
I've thrown in CFLAGS just in case.
Applied, thanks!
More information about the busybox
mailing list