From 4f659065b3b047cd1d5d03e010cc051236e35e59 Mon Sep 17 00:00:00 2001 From: Mohamed Akram Date: Wed, 7 May 2025 15:09:55 +0400 Subject: [PATCH] build: Fix build on macOS macOS does not have librt. Signed-off-by: Mohamed Akram --- AUTHORS | 1 + meson.build | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 32526014..91a6d71b 100644 --- a/AUTHORS +++ b/AUTHORS @@ -94,5 +94,6 @@ Patches also contributed by Michael Scherle Weishi Li Qiang Yu + Mohamed Akram ....send patches to get your name here... diff --git a/meson.build b/meson.build index a81b5284..7684c5e3 100644 --- a/meson.build +++ b/meson.build @@ -108,7 +108,7 @@ endforeach if host_machine.system() != 'windows' foreach dep : ['rt', 'm'] - spice_server_deps += compiler.find_library(dep) + spice_server_deps += compiler.find_library(dep, required: false) endforeach else foreach dep : ['ws2_32', 'shlwapi']