aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaud Rebillout <arnaud.rebillout@collabora.com>2018-10-31 12:36:01 +0700
committerArun Raghavan <arun@arunraghavan.net>2019-06-08 10:32:14 +0200
commitf6abc6841ee4c72204fa26844e5efdee66c4e0e3 (patch)
tree334c04e21d7db08a5cfaadf31eeec6448d023bcf
parenta9b55dbbd48596a387f7805926243239cf17f4bc (diff)
downloadpulseaudio-f6abc6841ee4c72204fa26844e5efdee66c4e0e3.tar.gz
meson: Move shm_dep check where it belongs
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
-rw-r--r--meson.build10
1 files changed, 5 insertions, 5 deletions
diff --git a/meson.build b/meson.build
index 89cd1451..166e5b85 100644
--- a/meson.build
+++ b/meson.build
@@ -205,11 +205,6 @@ foreach f : check_functions
endif
endforeach
-shm_dep = cc.find_library('rt', required : false)
-if shm_dep.found()
- cdata.set('HAVE_SHM_OPEN', 1)
-endif
-
if cc.has_function('SYS_memfd_create', prefix : '#include <sys/syscall.h>')
cdata.set('HAVE_MEMFD', 1)
endif
@@ -249,6 +244,11 @@ libm_dep = cc.find_library('m', required : true)
thread_dep = dependency('threads')
cap_dep = cc.find_library('cap', required : false)
+shm_dep = cc.find_library('rt', required : false)
+if shm_dep.found()
+ cdata.set('HAVE_SHM_OPEN', 1)
+endif
+
atomictest = '''void func() {
volatile int atomic = 2;
__sync_bool_compare_and_swap (&atomic, 2, 3);