mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
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 <richard.muzik@nic.cz>
This commit is contained in:
committed by
Rosen Penev
parent
e7459e61f0
commit
1dfc6db2d5
@@ -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)),)
|
||||
|
||||
Reference in New Issue
Block a user