[Buildroot] [git commit branch/2021.02.x] package/libloki: fix build with gcc 11
Peter Korsgaard
peter at korsgaard.com
Sat Aug 7 19:18:15 UTC 2021
commit: https://git.buildroot.net/buildroot/commit/?id=fba41dfefb746cf25acbc3a3bf03df32547e33e2
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2021.02.x
Fix the following build failure with gcc 11:
In file included from ../include/loki/SmartPtr.h:33,
from SmartPtr.cpp:20:
../include/loki/SmallObj.h: At global scope:
../include/loki/SmallObj.h:462:57: error: ISO C++17 does not allow dynamic exception specifications
462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc )
|
Fixes:
- http://autobuild.buildroot.org/results/768727160beaca5df3ef18be29cfbaa3ced67ad5
Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
(cherry picked from commit 0239ea5615a24469b6160f371fbec2735c89d4af)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
package/libloki/libloki.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/libloki/libloki.mk b/package/libloki/libloki.mk
index 7564239f6a..07a9372df9 100644
--- a/package/libloki/libloki.mk
+++ b/package/libloki/libloki.mk
@@ -23,6 +23,7 @@ endif
define LIBLOKI_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
+ CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11" \
-C $(@D) $(LIBLOKI_BUILD_TARGETS)
endef
More information about the buildroot
mailing list