From 1773b6cc68ccd37bb8cbc2e920e46970f4079df5 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Fri, 16 Oct 2020 09:26:41 +0200 Subject: [PATCH] Add -latomic if it exists; seems to be required on armel and sh4. --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index c5622eb..341f60b 100644 --- a/meson.build +++ b/meson.build @@ -7,13 +7,14 @@ cxx = meson.get_compiler('cpp') uringdep = dependency('liburing', required: false) zstddep = dependency('libzstd') threaddep = dependency('threads') +atomicdep = dependency('atomic', required: false) if not uringdep.found() add_project_arguments('-DWITHOUT_URING', language: 'cpp') endif executable('plocate', ['plocate.cpp', 'io_uring_engine.cpp', 'turbopfor.cpp', 'parse_trigrams.cpp', 'serializer.cpp', 'access_rx_cache.cpp', 'needle.cpp'], - dependencies: [uringdep, zstddep, threaddep], + dependencies: [uringdep, zstddep, threaddep, atomicdep], install: true, install_mode: ['rwxr-sr-x', 'root', 'mlocate']) executable('plocate-build', 'plocate-build.cpp', -- 2.39.2