src: use LIBC_SO and LIBNSL_SO from GNU libc, if available master
authorPino Toscano <toscano.pino@tiscali.it>
Fri, 30 May 2014 17:01:29 +0000 (19:01 +0200)
committerAndreas Schneider <asn@samba.org>
Wed, 9 Aug 2023 09:53:37 +0000 (11:53 +0200)
commit2dd91af5fe572ffebf7eb44d8386aec99cd50ab9
tree1c02502e31d70be476d023079eb97213fde3dc9a
parent3a4e4a2103e7871534e4fa1d85428b0b72ea001a
src: use LIBC_SO and LIBNSL_SO from GNU libc, if available

Look for gnu/lib-names.h and use the LIBC_SO and LIBNSL_SO defines to
dlopen libc and libnsl, so the right library is loaded without manually
searching for libc.so.N or libnsl.so.N.

Signed-off-by: Simon Josefsson <simon@josefsson.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
ConfigureChecks.cmake
config.h.cmake
src/nss_wrapper.c