From b564e342219b9a453ae2c5857b5aa2bcc54511af Mon Sep 17 00:00:00 2001 From: Andrew Krasavin Date: Tue, 1 Feb 2022 06:13:09 +0300 Subject: new custom dependency lookup for libdl --- docs/markdown/Dependencies.md | 11 +++++++++++ docs/markdown/snippets/libdl-dependency.md | 8 ++++++++ 2 files changed, 19 insertions(+) create mode 100644 docs/markdown/snippets/libdl-dependency.md (limited to 'docs') diff --git a/docs/markdown/Dependencies.md b/docs/markdown/Dependencies.md index 0cbed5c..9dabef8 100644 --- a/docs/markdown/Dependencies.md +++ b/docs/markdown/Dependencies.md @@ -393,6 +393,17 @@ foreach h : check_headers endforeach ``` +## dl (libdl) + +*(added 0.62.0)* + +Provides access to the dynamic link interface (functions: dlopen, +dlclose, dlsym and others). On systems where this is not built +into libc (mostly glibc < 2.34), tries to find an external library +providing them instead. + +`method` may be `auto`, `builtin` or `system`. + ## Fortran Coarrays *(added 0.50.0)* diff --git a/docs/markdown/snippets/libdl-dependency.md b/docs/markdown/snippets/libdl-dependency.md new file mode 100644 index 0000000..fee780c --- /dev/null +++ b/docs/markdown/snippets/libdl-dependency.md @@ -0,0 +1,8 @@ +## New custom dependency for libdl + +``` +dependency('dl') +``` + +will now check for the functionality of libdl.so, but first check if it is +provided in the libc (for example in libc on OpenBSD or in musl libc on linux). -- cgit v1.1