gentoo-ebuilds/games-strategy/wesnoth/files/wesnoth-1.19.10-boost-1.87.patch
Stefan Strogin fe5ae496a9
games-strategy/wesnoth: add 1.19.10
Add patch to fix linking error with boost::charconv.

Bug: https://github.com/wesnoth/wesnoth/issues/10062
Signed-off-by: Stefan Strogin <steils@gentoo.org>
2025-04-13 01:03:40 +00:00

45 lines
1.1 KiB
Diff

From 28b1fbc3bd8f3f44bdfa911e946f391dbc7717ea Mon Sep 17 00:00:00 2001
From: Jon Daniel <joneqdaniel@gmail.com>
Date: Wed, 26 Mar 2025 20:17:55 +0100
Subject: [PATCH] fix boost_charconv linkage
---
src/CMakeLists.txt | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index c3a2c52d7412b..a3d9e6daa380f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -226,6 +226,7 @@ if(ENABLE_GAME)
Boost::coroutine
Boost::locale
Boost::filesystem
+ boost_charconv
Fontconfig::Fontconfig
SDL2::SDL2
SDL2::SDL2main
@@ -273,6 +274,7 @@ if(ENABLE_TESTS)
Boost::locale
Boost::filesystem
Boost::unit_test_framework
+ boost_charconv
Fontconfig::Fontconfig
SDL2::SDL2
SDL2::SDL2main
@@ -321,6 +323,7 @@ if(ENABLE_SERVER)
Boost::coroutine
Boost::locale
Boost::filesystem
+ boost_charconv
)
if(MSVC)
target_link_options(wesnothd PRIVATE /WX)
@@ -362,6 +365,7 @@ if(ENABLE_CAMPAIGN_SERVER)
Boost::coroutine
Boost::locale
Boost::filesystem
+ boost_charconv
)
if(MSVC)
target_link_options(campaignd PRIVATE /WX)