]> git.sesse.net Git - plocate/commitdiff
Add -latomic if it exists; seems to be required on armel and sh4.
authorSteinar H. Gunderson <steinar+git@gunderson.no>
Fri, 16 Oct 2020 07:26:41 +0000 (09:26 +0200)
committerSteinar H. Gunderson <steinar+git@gunderson.no>
Fri, 16 Oct 2020 07:27:17 +0000 (09:27 +0200)
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',