]> git.sesse.net Git - plocate/blobdiff - meson.build
Add -latomic if it exists; seems to be required on armel and sh4.
[plocate] / meson.build
index c5622eb209d4c2282f63fcc9e2aaa28a91ad2a38..341f60b877eaa5df081657ddbc234f0f268631cb 100644 (file)
@@ -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',