From 772681f23d838016363db1272a58400e39132d96 Mon Sep 17 00:00:00 2001 From: Thomas Zander Date: Sun, 13 Jan 2019 14:09:14 +0100 Subject: [PATCH] Fix link_args for mDNSResponder on non-darwin platforms --- src/zeroconf/meson.build | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/zeroconf/meson.build b/src/zeroconf/meson.build index 5109b5efc..2858079cb 100644 --- a/src/zeroconf/meson.build +++ b/src/zeroconf/meson.build @@ -30,10 +30,14 @@ if zeroconf_option == 'bonjour' if not compiler.has_header('dns_sd.h') error('dns_sd.h not found') endif - - bonjour_dep = declare_dependency(link_args: ['-framework', 'dnssd']) + + if is_darwin + bonjour_dep = declare_dependency(link_args: ['-framework', 'dnssd']) + else + bonjour_dep = declare_dependency(link_args: ['-ldns_sd']) + endif conf.set('HAVE_BONJOUR', true) - + zeroconf = static_library( 'zeroconf_bonjour', 'ZeroconfGlue.cxx',