Fix compilation with gcc 14 by applying the -std=c17 flag, as suggested
by lededev in https://github.com/openwrt/packages/commit/
2d3f68cc8c165b1fa01308f566394cbd7d06766f#commitcomment-
153860241
(also -c23 seems to work ok with gcc14, but that seems to break gcc13)
Remove the previous autoreconf fix attempt.
Signed-off-by: Hannu Nyman <[email protected]>
PKG_NAME:=coreutils
PKG_VERSION:=9.6
-PKG_RELEASE:=4
+PKG_RELEASE:=5
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@GNU/coreutils
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
-ifeq ($(CONFIG_GCC_VERSION_14),y)
- PKG_FIXUP:=autoreconf
-endif
include $(INCLUDE_DIR)/package.mk
--without-selinux \
--with-gmp
+TARGET_CFLAGS += -std=c17
+
define Package/coreutils/install
true
endef