From e062dc7ca2bb70561b11674428939057832158a9 Mon Sep 17 00:00:00 2001 From: Johannes Wikner Date: Thu, 30 Jun 2022 18:55:35 +0200 Subject: Add dependency on librt This is required for shm_open and shm_unlink on some systems. --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 8bc2b01..1c71eef 100644 --- a/meson.build +++ b/meson.build @@ -84,6 +84,7 @@ compgen_sources = files( ) cc = meson.get_compiler('c') +librt = cc.find_library('rt', required: false) libm = cc.find_library('m', required: false) freetype = dependency('freetype2') harfbuzz = dependency('harfbuzz') @@ -126,7 +127,7 @@ endforeach executable( 'tofi', tofi_sources, wl_proto_src, wl_proto_headers, - dependencies: [libm, freetype, harfbuzz, cairo, pangocairo, wayland_client, xkbcommon], + dependencies: [librt, libm, freetype, harfbuzz, cairo, pangocairo, wayland_client, xkbcommon], install: true ) -- cgit v1.2.3