All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit branch/2021.02.x] package/odb: fix build with gcc 11
@ 2021-06-10 20:15 Peter Korsgaard
  0 siblings, 0 replies; only message in thread
From: Peter Korsgaard @ 2021-06-10 20:15 UTC (permalink / raw
  To: buildroot

commit: https://git.buildroot.net/buildroot/commit/?id=5a2437870b9fb3fd9d9047f5e618a554134783a8
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2021.02.x

Add -std=c++11 to fix the following build failure with gcc 11:

/data/buildroot-autobuilder/instance-0/output-1/host/include/cutl/shared-ptr/base.hxx:34:41: error: ISO C++17 does not allow dynamic exception specifications
   34 | operator new (std::size_t, cutl::share) throw (std::bad_alloc);
      |                                         ^~~~~

Fixes:
 - http://autobuild.buildroot.org/results/9cbb8be7a1d8ac5913fbc5e2a78c4c45b5daf8e2

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit ac9855e761443dee4f9d461b83e12443d37e8678)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 package/odb/odb.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/odb/odb.mk b/package/odb/odb.mk
index 11086471e6..85c7ccb8bb 100644
--- a/package/odb/odb.mk
+++ b/package/odb/odb.mk
@@ -11,6 +11,7 @@ ODB_SITE = https://www.codesynthesis.com/download/odb/$(ODB_VERSION_MAJOR)
 ODB_LICENSE = GPL-3.0
 ODB_LICENSE_FILES = LICENSE
 HOST_ODB_DEPENDENCIES = host-libcutl
+HOST_ODB_CONF_ENV = CXXFLAGS="$(HOST_CXXFLAGS) -std=c++11"
 
 # Prevent odb from trying to install the gcc plugin into the hosts
 # gcc plugin directory. Instead, this will install the gcc plugin

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-10 20:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-10 20:15 [Buildroot] [git commit branch/2021.02.x] package/odb: fix build with gcc 11 Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.