[Spice-commits] meson.build

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Apr 8 06:11:33 UTC 2020


 meson.build |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 26bbb85c150f882c05399e4c574208b8b1242082
Author: James Le Cuirot <chewi at gentoo.org>
Date:   Tue Apr 7 19:32:15 2020 +0100

    build: Fix librt and libm dependencies in Meson
    
    They need to be requested without the lib prefix, otherwise a
    generated pkg-config file ends up with absolute paths instead of -l
    flags.
    
    Signed-off-by: James Le Cuirot <chewi at gentoo.org>
    Acked-by: Frediano Ziglio <fziglio at redhat.com>

diff --git a/meson.build b/meson.build
index 1685c077..f9090a82 100644
--- a/meson.build
+++ b/meson.build
@@ -102,7 +102,7 @@ foreach dep : ['libjpeg', 'zlib']
 endforeach
 
 if host_machine.system() != 'windows'
-  foreach dep : ['librt', 'libm']
+  foreach dep : ['rt', 'm']
     spice_server_deps += compiler.find_library(dep)
   endforeach
 else


More information about the Spice-commits mailing list