1
0
mirror of https://github.com/libuv/libuv synced 2025-03-28 21:13:16 +00:00

1 Commits

Author SHA1 Message Date
Jeroen Roovers
b4fe4f6ad9
build: check for libraries not provided by libc
Using AC_CHECK_LIB ignores symbols already provided by
other libraries, or in other words it links libuv against
libraries that it does not need.

Attempts to remove specific libraries were met with arguments
that older libc versions would still require them.[0]

Fix this by using AC_SEARCH_LIBS instead of AC_CHECK_LIB while
using AX_PTHREAD for POSIX threads.

[0] E.g. https://github.com/libuv/libuv/pull/2493

PR-URL: https://github.com/libuv/libuv/pull/2823
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2020-05-17 09:16:13 -04:00