mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-23 18:38:08 -07:00
error() is available in glibc, not in musl, configure check header file "error.h" only. If sys-libs/error-standalone is installed, check report ok, but link will fail because no "-lerror". So update configure.ac to check both error.h exist and can be linked without any extra "-l...", if not then fallback to err.h which cause built-in error() to be used. Closes: https://bugs.gentoo.org/948878 Signed-off-by: Z. Liu <zhixu.liu@gmail.com> Signed-off-by: Alfred Wingate <parona@protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/40322 Signed-off-by: Sam James <sam@gentoo.org>