Skip to content

Commit

Permalink
meson.build: Stop linking with libatomic on non-Linux
Browse files Browse the repository at this point in the history
This is not needed on FreeBSD and can break the build there for the
architectures needing it on Linux.
  • Loading branch information
OlCe2 committed Jan 7, 2025
1 parent 27e7840 commit fc71972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ compiler = meson.get_compiler('cpp')
static_deps = get_option('static-linkage') or get_option('default_library') == 'static'

# See https://github.com/kiwix/libkiwix/issues/371
if ['arm', 'mips', 'm68k', 'ppc', 'sh4'].contains(host_machine.cpu_family())
if host_machine.system() == 'linux' and ['arm', 'mips', 'm68k', 'ppc', 'sh4'].contains(host_machine.cpu_family())
extra_libs = ['-latomic']
else
extra_libs = []
Expand Down

0 comments on commit fc71972

Please sign in to comment.