GCC 14.1.0 deprecated NIOS2 so we need to enable it explicitely. Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
@@ -117,6 +117,11 @@ else
HOST_GCC_FINAL_CONF_OPTS += --disable-libgomp
endif
+# allow to build gcc 14.x
+ifeq ($(BR2_nios2),y)
+HOST_GCC_FINAL_CONF_OPTS += --enable-obsolete
+endif
+
# End with user-provided options, so that they can override previously
# defined options.
HOST_GCC_FINAL_CONF_OPTS += \
@@ -42,6 +42,11 @@ HOST_GCC_INITIAL_CONF_OPTS = \
--disable-largefile \
$(call qstrip,$(BR2_EXTRA_GCC_CONFIG_OPTIONS))
+HOST_GCC_INITIAL_CONF_OPTS += --enable-obsolete
HOST_GCC_INITIAL_CONF_ENV = \
$(HOST_GCC_COMMON_CONF_ENV)