diff --git a/src/realmd/meson.build b/src/realmd/meson.build index 6e776c30697..88a170fc345 100644 --- a/src/realmd/meson.build +++ b/src/realmd/meson.build @@ -16,13 +16,17 @@ endif realmd_inc = include_directories(realmd_inc_dirs) +if build_machine.system() == 'darwin' + local_linker = [_linker_args, '-Wl,no_fixup_chains -framework Carbon'] +endif + if get_option('BUILD_LOGIN_SERVER') executable('realmd', realmd_sources, link_with: [sharedlib], include_directories: [realmd_inc, global_includes], dependencies: [boost_dep, dblib_dep, zlib_dep, openssl_dep, utfcpp_dep], - link_args: _linker_args, + link_args: local_linker, install: true ) install_data('realmd.conf.dist.in', rename: 'realmd.conf.dist', install_dir: 'etc')