diff --git a/meson.build b/meson.build index 7697be86d4..c4316aa05d 100644 --- a/meson.build +++ b/meson.build @@ -215,7 +215,8 @@ if host_machine.cpu_family() == 'x86' ) endif -if host_machine.system() == 'darwin' +isdarwin = host_machine.system() == 'darwin' +if isdarwin add_project_arguments( cc.get_supported_arguments( '-Wno-deprecated-declarations', # For GSS.Framework @@ -279,6 +280,13 @@ config.set_quoted('RNDC_CONFFILE', sysconfdir / 'rndc.conf') config.set_quoted('RNDC_KEYFILE', sysconfdir / 'rndc.key') config.set_quoted('NAMED_PLUGINDIR', libdir / 'bind') +if isdarwin + # Plugin extensions - macOS is the only specific case + config.set_quoted('NAMED_PLUGINEXT', '.dylib') +else + config.set_quoted('NAMED_PLUGINEXT', '.so') +endif + config.set_quoted('NAMED_LOCALSTATEDIR', localstatedir) config.set_quoted('NAMED_SYSCONFDIR', sysconfdir) config.set_quoted('NAMED_CONFFILE', sysconfdir / 'named.conf')