[PATCH v2] Makefile.flags: fix the OS detection for libresolv
Martin Kaiser
lists at kaiser.cx
Tue Jan 12 08:53:22 UTC 2021
Hi,
Thus wrote Xabier Oneca -- xOneca (xoneca at gmail.com):
> So, this test (previous to your change) depends on uname applet being
> compiled in?
it seems so.
coreutils/uname.c
//config:config UNAME
...
//config:
//config:config UNAME_OSNAME
...
//config: default "GNU/Linux"
//config: depends on UNAME
I disabled CONFIG_UNAME for testing, CONFIG_UNAME_OSNAME was empty then.
So the os check was wrong in the first place.
I was wondering if we could use $CC -dumpmachine to find out for which
target os we are compiling? At least gcc and clang support this
option...
Best regards,
Martin
More information about the busybox
mailing list