Merge pull request #372 from kiwix/link-atomic

Pass -latomic for architectures that need it
This commit is contained in:
Matthieu Gautier 2020-06-29 14:43:16 +02:00 committed by GitHub
commit 71462696bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -18,6 +18,11 @@ if 'java' in wrapper
add_languages('java') add_languages('java')
endif endif
# See https://github.com/kiwix/kiwix-lib/issues/371
if target_machine.cpu_family() in ['arm', 'mips', 'm68k', 'ppc']
extra_libs += '-latomic'
endif
thread_dep = dependency('threads') thread_dep = dependency('threads')
libicu_dep = dependency('icu-i18n', static:static_deps) libicu_dep = dependency('icu-i18n', static:static_deps)
libzim_dep = dependency('libzim', version : '>=6.1.1', static:static_deps) libzim_dep = dependency('libzim', version : '>=6.1.1', static:static_deps)

View File

@ -53,6 +53,7 @@ kiwixlib = library('kiwix',
kiwix_sources, kiwix_sources,
include_directories : inc, include_directories : inc,
dependencies : all_deps, dependencies : all_deps,
link_args: extra_libs,
version: meson.project_version(), version: meson.project_version(),
install: true, install: true,
install_dir: install_dir) install_dir: install_dir)