Skip to content

Commit

Permalink
Meson: Add apple silicon linker flags
Browse files Browse the repository at this point in the history
  • Loading branch information
insunaa committed Nov 23, 2024
1 parent 515865d commit b331812
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/realmd/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit b331812

Please sign in to comment.