From 7425450ba27ecd3dacf795e42bb70ef0c98684e8 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Mon, 10 Jan 2022 18:35:42 +0100 Subject: [PATCH] package/cryptopp: needs wchar Fix the following build failure raised since commit bf4cf9de833e2d571d98d1ca935ea08a3468e463: In file included from seckey.h:11, from 3way.h:10, from 3way.cpp:5: misc.h:1528:6: error: 'wstring' in namespace 'std' does not name a type 1528 | std::wstring StringWiden(const char *str, bool throwOnError = true); | ^~~~~~~ In file included from seckey.h:11, from 3way.h:10, from 3way.cpp:5: misc.h:14:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? 13 | #include "smartptr.h" +++ |+#include 14 | #include "stdcpp.h" Fixes: - http://autobuild.buildroot.org/results/174fe03da7a40dd152703de93af6a213d9cac698 Signed-off-by: Fabrice Fontaine Signed-off-by: Thomas Petazzoni --- package/cryptopp/Config.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package/cryptopp/Config.in b/package/cryptopp/Config.in index 4ead5339ab..feb945db2f 100644 --- a/package/cryptopp/Config.in +++ b/package/cryptopp/Config.in @@ -1,8 +1,9 @@ config BR2_PACKAGE_CRYPTOPP bool "cryptopp" depends on !BR2_STATIC_LIBS + depends on BR2_USE_WCHAR help A free C++ class library of cryptographic schemes -comment "cryptopp needs a toolchain w/ dynamic library" - depends on BR2_STATIC_LIBS +comment "cryptopp needs a toolchain w/ dynamic library, wchar" + depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR