You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
873 B

  1. From 26bbb85c150f882c05399e4c574208b8b1242082 Mon Sep 17 00:00:00 2001
  2. From: James Le Cuirot <chewi@gentoo.org>
  3. Date: Tue, 7 Apr 2020 19:32:15 +0100
  4. Subject: [PATCH] build: Fix librt and libm dependencies in Meson
  5. They need to be requested without the lib prefix, otherwise a
  6. generated pkg-config file ends up with absolute paths instead of -l
  7. flags.
  8. Signed-off-by: James Le Cuirot <chewi@gentoo.org>
  9. Acked-by: Frediano Ziglio <fziglio@redhat.com>
  10. ---
  11. meson.build | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13. diff --git a/meson.build b/meson.build
  14. index 1685c077..f9090a82 100644
  15. --- a/meson.build
  16. +++ b/meson.build
  17. @@ -102,7 +102,7 @@ foreach dep : ['libjpeg', 'zlib']
  18. endforeach
  19. if host_machine.system() != 'windows'
  20. - foreach dep : ['librt', 'libm']
  21. + foreach dep : ['rt', 'm']
  22. spice_server_deps += compiler.find_library(dep)
  23. endforeach
  24. else