mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-04 01:37:34 -08:00
* 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>
32 lines
1.1 KiB
Diff
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
|