[Buildroot] [git commit branch/2022.02.x] package/cloop: fix build with gcc >= 9
Peter Korsgaard
peter at korsgaard.com
Sat Apr 9 10:49:24 UTC 2022
commit: https://git.buildroot.net/buildroot/commit/?id=3ae9a618b8634b0093890e12a1326910e7bef941
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2022.02.x
Fix the following build failure with gcc >= 9 (and -std=c++17):
./file.h:70:43: error: ISO C++17 does not allow dynamic exception specifications
70 | bool file_exists(const std::string& file) throw (error);
| ^~~~~
Fixes:
- http://autobuild.buildroot.org/results/8320edd448cd1f7c14a65734f63a2df5d4b0d442
Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
(cherry picked from commit 7e147e778fc3397cd2a069c8127fa4d2cc6c0355)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
package/cloop/cloop.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/cloop/cloop.mk b/package/cloop/cloop.mk
index f3c4954ead..6f6d5fe6a8 100644
--- a/package/cloop/cloop.mk
+++ b/package/cloop/cloop.mk
@@ -14,7 +14,7 @@ HOST_CLOOP_DEPENDENCIES = host-zlib
define HOST_CLOOP_BUILD_CMDS
$(HOST_CONFIGURE_OPTS) $(MAKE1) -C $(@D) APPSONLY=yes \
- CFLAGS="$(HOST_CFLAGS) -D_GNU_SOURCE"
+ CFLAGS="$(HOST_CFLAGS) -D_GNU_SOURCE" CPPFLAGS="-std=c++14"
endef
define HOST_CLOOP_INSTALL_CMDS
More information about the buildroot
mailing list