[Buildroot] [git commit branch/2021.05.x] package/libodb: fix build with gcc 11
From: Peter Korsgaard <peter@korsgaard.com>
Date: 2021-08-07 20:49:53
Subsystem:
the rest · Maintainer:
Linus Torvalds
commit: https://git.buildroot.net/buildroot/commit/?id=29f88337be38918a1c2864079777e56c86561231 branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2021.05.x GCC 11 defaults to C++17. Fix the following build failure with gcc 11: In file included from details/shared-ptr/base.cxx:5: ../odb/details/shared-ptr/base.hxx:38:49: error: ISO C++17 does not allow dynamic exception specifications 38 | operator new (std::size_t, odb::details::share) throw (std::bad_alloc); | ^~~~~ Fixes: - http://autobuild.buildroot.org/results/cfd5f92f0aa923815edba5fbfcd5b7b312d9d40e Signed-off-by: Fabrice Fontaine <redacted> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <redacted> (cherry picked from commit 69d2d1d91e44d6bc80690b82811d0447e81ed31b) Signed-off-by: Peter Korsgaard <peter@korsgaard.com> --- package/libodb/libodb.mk | 1 + 1 file changed, 1 insertion(+)
diff --git a/package/libodb/libodb.mk b/package/libodb/libodb.mk
index f36d8957c0..11ca9de866 100644
--- a/package/libodb/libodb.mk
+++ b/package/libodb/libodb.mk@@ -11,5 +11,6 @@ LIBODB_SITE = https://www.codesynthesis.com/download/odb/$(LIBODB_VERSION_MAJOR) LIBODB_INSTALL_STAGING = YES LIBODB_LICENSE = GPL-2.0 LIBODB_LICENSE_FILES = LICENSE +LIBODB_CONF_ENV = CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11" $(eval $(autotools-package))
_______________________________________________ buildroot mailing list buildroot@busybox.net http://lists.busybox.net/mailman/listinfo/buildroot