Browse Source

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 '<string>'; did you forget to '#include <string>'?
   13 | #include "smartptr.h"
  +++ |+#include <string>
   14 | #include "stdcpp.h"

Fixes:
 - http://autobuild.buildroot.org/results/174fe03da7a40dd152703de93af6a213d9cac698

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Fabrice Fontaine 3 years ago
parent
commit
7425450ba2
1 changed files with 3 additions and 2 deletions
  1. 3 2
      package/cryptopp/Config.in

+ 3 - 2
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