[Buildroot] [git commit] package/libfreeimage: fix build with gcc 11
From: Yann E. MORIN <hidden>
Date: 2021-08-01 18:47:32
Subsystem:
the rest · Maintainer:
Linus Torvalds
commit: https://git.buildroot.net/buildroot/commit/?id=b4f0a0d603176b45e52d7d6e695af269a356f413 branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master Fix the following build failure with gcc 11: In file included from Source/FreeImage/../OpenEXR/IlmImf/ImfHeader.h:51, from Source/FreeImage/../OpenEXR/IlmImf/ImfOutputFile.h:46, from Source/FreeImage/PluginEXR.cpp:33: Source/OpenEXR/Imath/ImathVec.h:228:41: error: ISO C++17 does not allow dynamic exception specifications 228 | const Vec2 & normalizeExc () throw (IEX_NAMESPACE::MathExc); | ^~~~~ Fixes: - http://autobuild.buildroot.org/results/953cd07402fe2f99f2361a3b4a7b086a88e0d72d Signed-off-by: Fabrice Fontaine <redacted> Signed-off-by: Yann E. MORIN <redacted> --- package/libfreeimage/libfreeimage.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/package/libfreeimage/libfreeimage.mk b/package/libfreeimage/libfreeimage.mk
index 91299084a1..4775f92109 100644
--- a/package/libfreeimage/libfreeimage.mk
+++ b/package/libfreeimage/libfreeimage.mk@@ -20,7 +20,8 @@ define LIBFREEIMAGE_EXTRACT_CMDS endef define LIBFREEIMAGE_BUILD_CMDS - $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) + $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) \ + CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11" $(MAKE) -C $(@D) endef define LIBFREEIMAGE_INSTALL_STAGING_CMDS
_______________________________________________ buildroot mailing list buildroot@busybox.net http://lists.busybox.net/mailman/listinfo/buildroot