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.

26 lines
802 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. --- a/meson.build
  14. +++ b/meson.build
  15. @@ -103,7 +103,7 @@ foreach dep : ['libjpeg', 'zlib']
  16. endforeach
  17. if host_machine.system() != 'windows'
  18. - foreach dep : ['librt', 'libm']
  19. + foreach dep : ['rt', 'm']
  20. spice_server_deps += compiler.find_library(dep)
  21. endforeach
  22. else