From 1dfc6db2d5e5c08a8f5f3b36d60ff36d662851dc Mon Sep 17 00:00:00 2001 From: Richard Muzik Date: Mon, 22 Jul 2024 13:31:38 +0200 Subject: [PATCH] boost: update GCC options in Makefile Update the options to match the master branch. This drops options of no longer supported GCC versions. Signed-off-by: Richard Muzik --- libs/boost/Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/libs/boost/Makefile b/libs/boost/Makefile index aecf1dc8a8..b8292dcf54 100644 --- a/libs/boost/Makefile +++ b/libs/boost/Makefile @@ -384,12 +384,10 @@ TARGET_LDFLAGS += -pthread -lrt -lstdc++ -Wl,--as-needed,--print-gc-sections TARGET_CFLAGS += \ $(if $(CONFIG_SOFT_FLOAT),-DBOOST_NO_FENV_H) -fPIC -ifeq ($(word 1,$(subst ., ,$(call qstrip,$(CONFIG_GCC_VERSION)))),5) - EXTRA_CXXFLAGS += -std=gnu++14 -else ifneq ($(filter-out 6 7 8 9,$(word 1,$(subst ., ,$(call qstrip,$(CONFIG_GCC_VERSION))))),) - EXTRA_CXXFLAGS += -std=gnu++17 -else +ifeq ($(word 1,$(subst ., ,$(call qstrip,$(CONFIG_GCC_VERSION)))),11) EXTRA_CXXFLAGS += -std=gnu++20 +else + EXTRA_CXXFLAGS += -std=gnu++23 endif ifneq ($(findstring mips,$(ARCH)),)