From defed5008011d5b187934d42629c850b5147f5ea Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Wed, 12 May 2021 22:51:36 +0000 Subject: [PATCH] build: some systems provide dlopen() in libc libuv is packaged for OmniOS, an illumos distribution (OpenSolaris fork), and on that platform `libdl.so` is just a legacy stub library that does not need to be linked. `dlopen()` and friends are present in libc. Changing to using `AC_SEARCH_LIBS()` instead of `AC_CHECK_LIB()` stops the unnecessary linking of libdl. PR-URL: https://github.com/libuv/libuv/pull/3113 Reviewed-By: Ben Noordhuis Reviewed-By: Jameson Nash --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 4bdc7fd3..3c13d401 100644 --- a/configure.ac +++ b/configure.ac @@ -43,7 +43,7 @@ AX_PTHREAD([ LIBS="$LIBS $PTHREAD_LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" ]) -AC_CHECK_LIB([dl], [dlopen]) +AC_SEARCH_LIBS([dlopen], [dl]) AC_SEARCH_LIBS([kstat_lookup], [kstat]) AC_SEARCH_LIBS([gethostbyname], [nsl]) AC_SEARCH_LIBS([perfstat_cpu], [perfstat])