Link_to_libmusicbrainzcc.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From 1ced66aaf82dad2137c01e887a88c10a4269467e Mon Sep 17 00:00:00 2001
  2. From: "Jason E. Hale" <jhale@FreeBSD.org>
  3. Date: Mon, 18 Nov 2024 00:54:12 -0500
  4. Subject: [PATCH] build: Link to libmusicbrainzcc, not libmusicbrainz
  5. Fix linking when the ENABLE_MUSICBRAINZ option is true. This was
  6. regressed in 8e7f8ef, by linking to the libmusicbrainz (C) library
  7. instead of the libmusicbrainzcc (C++) library causing undefined symbols.
  8. ---
  9. cmake/FindMusicBrainz5.cmake | 6 +++---
  10. 1 file changed, 3 insertions(+), 3 deletions(-)
  11. diff --git a/cmake/FindMusicBrainz5.cmake b/cmake/FindMusicBrainz5.cmake
  12. index bca0954e..1d69f607 100644
  13. --- a/cmake/FindMusicBrainz5.cmake
  14. +++ b/cmake/FindMusicBrainz5.cmake
  15. @@ -40,7 +40,7 @@ The following cache variables may also be set:
  16. # First use PKG-Config as a starting point.
  17. find_package(PkgConfig)
  18. if(PKG_CONFIG_FOUND)
  19. - pkg_check_modules(PC_MusicBrainz5 QUIET libmusicbrainz5)
  20. + pkg_check_modules(PC_MusicBrainz5 QUIET libmusicbrainz5cc)
  21. endif(PKG_CONFIG_FOUND)
  22. find_path(MusicBrainz5_INCLUDE_DIR
  23. @@ -50,7 +50,7 @@ find_path(MusicBrainz5_INCLUDE_DIR
  24. )
  25. find_library(MusicBrainz5_LIBRARY
  26. - NAMES musicbrainz5
  27. + NAMES musicbrainz5cc
  28. PATHS ${PC_MusicBrainz5_LIBRARY_DIRS}
  29. )
  30. @@ -83,4 +83,4 @@ endif()
  31. mark_as_advanced(
  32. MusicBrainz5_INCLUDE_DIR
  33. MusicBrainz5_LIBRARY
  34. -)
  35. \ No newline at end of file
  36. +)