Skip to content

Commit a1ee0eb

Browse files
committed
tools/mklibs: Fix compile with GCC 11
GCC 11 defaults to C++17, but mklibs does not compile when using the C++17 standard. This patch switches back to the gnu++98 version like done in master commit 9437012 ("tools/mklibs: update to 0.1.44 and convert to Python 3") This fixes the following compile error message: elf.hpp:52:56: error: ISO C++17 does not allow dynamic exception specifications 52 | const section &get_section(unsigned int i) const throw (std::out_of_range) { return *sections.at(i); }; Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
1 parent 84c5dbc commit a1ee0eb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎tools/mklibs/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ HOST_FIXUP:=autoreconf
1818
include $(INCLUDE_DIR)/host-build.mk
1919

2020
HOST_CFLAGS += -I$(CURDIR)/include
21+
HOST_CPPFLAGS += -std=gnu++98
2122

2223
define Host/Install
2324
$(INSTALL_BIN) \

0 commit comments

Comments
 (0)