Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
libdl is named inconsistently accross Linux distros #2
I was doing some work related to loading native libraries and the realized you already have a project dedicated to that.
Anyway, currently you P/Invoke directly into
That part might be about lack of devel libraries (glibc-devel or similar). libdl.so is usually a link to libdl.so.x.y.
FreeBSD and NetBSD ship with dlopen(3) in libc, so no need to detect it. It's good enough to hardcode -ldl for Linux and lack of it for BSDs, these options don't change often, unless someone wants to support HP-UX, IRIX etc..
referenced this issue
Apr 10, 2018
For whatever it's worth,
If I'm following the linked corefx discussion, it sounds like the plan is to make the static