From: Steinar H. Gunderson Date: Fri, 16 Oct 2020 08:01:28 +0000 (+0200) Subject: Fix detection of -latomic (it doesn't come from pkg-config). X-Git-Tag: 1.0.5~8 X-Git-Url: https://git.sesse.net/?p=plocate;a=commitdiff_plain;h=6d653bc20ef8025d50fd4ef143b6bac2955fc74c Fix detection of -latomic (it doesn't come from pkg-config). --- diff --git a/meson.build b/meson.build index 341f60b..0c0a53f 100644 --- a/meson.build +++ b/meson.build @@ -7,7 +7,7 @@ cxx = meson.get_compiler('cpp') uringdep = dependency('liburing', required: false) zstddep = dependency('libzstd') threaddep = dependency('threads') -atomicdep = dependency('atomic', required: false) +atomicdep = cxx.find_library('atomic', required: false) if not uringdep.found() add_project_arguments('-DWITHOUT_URING', language: 'cpp')