diff options
author | Thomas Zander <thomas.e.zander@googlemail.com> | 2019-01-13 14:09:14 +0100 |
---|---|---|
committer | Thomas Zander <thomas.e.zander@googlemail.com> | 2019-01-13 14:09:14 +0100 |
commit | 772681f23d838016363db1272a58400e39132d96 (patch) | |
tree | a7fe319e736957c6e717c83d6f006fecad2d28d1 /src | |
parent | 1862a98a44d75d7b48f97612cd19483d2636f8de (diff) |
Fix link_args for mDNSResponder on non-darwin platforms
Diffstat (limited to 'src')
-rw-r--r-- | src/zeroconf/meson.build | 10 |
1 files 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', |