Skip to content

Commit

Permalink
Merge pull request #445 from OlCe2/main
Browse files Browse the repository at this point in the history
Two minor build fixes
  • Loading branch information
kelson42 authored Feb 6, 2025
2 parents f26871f + 91e932c commit 870a087
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
3 changes: 2 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ endif

libzim_dep = dependency('libzim', version:['>=9.2.0', '<10.0.0'], static:static_linkage)

with_xapian_support = compiler.has_header_symbol('zim/zim.h', 'LIBZIM_WITH_XAPIAN')
with_xapian_support = compiler.has_header_symbol(
'zim/zim.h', 'LIBZIM_WITH_XAPIAN', dependencies: libzim_dep)

find_library_in_compiler = meson.version().version_compare('>=0.31.0')
rt_dep = dependency('rt', required:false)
Expand Down
15 changes: 7 additions & 8 deletions src/zimcheck/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ endif

inc = include_directories(extra_include)

if compiler.get_id() == 'gcc' and host_machine.system() == 'linux'
# C++ std::thread is implemented using pthread on linux by gcc
thread_dep = dependency('threads')
else
thread_dep = dependency('', required:false)
zimcheck_deps = [libzim_dep, icu_dep, docopt_dep]

# C++ std::thread is implemented using pthread on Linux by GCC, and on FreeBSD
# for both GCC and LLVM.
if (host_machine.system() == 'linux' and compiler.get_id() == 'gcc') or host_machine.system() == 'freebsd'
zimcheck_deps += dependency('threads')
endif

executable('zimcheck',
Expand All @@ -23,7 +24,5 @@ executable('zimcheck',
'../tools.cpp',
'../metadata.cpp',
include_directories : inc,
dependencies: [libzim_dep, icu_dep, thread_dep, docopt_dep],
dependencies: zimcheck_deps,
install: true)


0 comments on commit 870a087

Please sign in to comment.