From: Fred Morcos Date: Thu, 6 Jul 2023 12:08:53 +0000 (+0200) Subject: Meson: dlopen X-Git-Tag: rec-5.1.0-alpha1~80^2~346 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a98cd1bf6f296168018f6913764e5c03dbfa7de9;p=thirdparty%2Fpdns.git Meson: dlopen --- diff --git a/meson.build b/meson.build index e5c67269d5..6f92fa07d3 100644 --- a/meson.build +++ b/meson.build @@ -49,6 +49,7 @@ subdir('meson/reproducible') # Reproducible Builds subdir('meson/fuzz-targets') # Fuzzing Targets subdir('meson/python-venv') # Python Venv subdir('meson/from-git') # From Git +subdir('meson/dlopen') # dlopen # Find or generate pdns/dnslabeltext.cc if not ragel.found() and not fs.exists('pdns/dnslabeltext.cc') diff --git a/meson/dlopen/meson.build b/meson/dlopen/meson.build new file mode 100644 index 0000000000..bc82c7e350 --- /dev/null +++ b/meson/dlopen/meson.build @@ -0,0 +1,16 @@ +# dlopen +# Inputs: cxx deps + +# dep_dlopen = dependency('dl', required: true) # TODO Meson 0.62 +# deps += dep_dlopen + +if cxx.has_function('dlopen') + subdir_done() +endif + +dl = cxx.find_library('dl', required: true) +if not cxx.has_function('dlopen', dependencies: dl) + error('Your system does not support dlopen') +endif + +deps += dl