gentoo/dev-libs/libphonenumber/files/libphonenumber-8.13.47-cmake.patch
Sam James 8562873238
dev-libs/libphonenumber: add 8.13.47
* Replace CMake patch with newer version from Exherbo (original came
  from there too)
* Import another patch from Exherbo for newer abseil-cpp (fixes linking
  w/ lld, mold)
* Drop -Werror
* Wire up tests again (sorry, not rebasing the CMake patch, this is
  good enough ;))

Closes: https://bugs.gentoo.org/889910
Closes: https://bugs.gentoo.org/923946
Closes: https://bugs.gentoo.org/939873
Signed-off-by: Sam James <sam@gentoo.org>
2024-10-05 12:10:11 +01:00

32 lines
1.1 KiB
Diff

https://gitlab.exherbo.org/exherbo/kde/-/blob/master/packages/dev-libs/libphonenumber/files/Link-the-test-program-to-the-shared-lib-to-allow-bui.patch?ref_type=heads
https://github.com/google/libphonenumber/pull/2556 (previous version)
Upstream: no
Reason: fails to link with -DBUILD_STATIC_LIB=OFF
From 0b50dcf8299e3c18cdc158f40aa97cdb0318b08e Mon Sep 17 00:00:00 2001
From: Bernd Steinhauser <berniyh@exherbo.org>
Date: Tue, 10 Jan 2023 09:14:44 +0100
Subject: [PATCH] Link the test program to the shared lib to allow building
without static libs
---
cpp/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt
index d2d111d5..932b5e63 100644
--- a/cpp/CMakeLists.txt
+++ b/cpp/CMakeLists.txt
@@ -599,7 +599,7 @@ if(BUILD_TESTING)
# libraries are built properly.
if (BUILD_GEOCODER)
add_executable (geocoding_test_program "test/phonenumbers/geocoding/geocoding_test_program.cc")
- target_link_libraries (geocoding_test_program geocoding phonenumber)
+ target_link_libraries (geocoding_test_program geocoding-shared phonenumber-shared)
endif ()
endif()
--
2.39.0