coreutils: Fix gcc14 compilation via std=c17
authorHannu Nyman <[email protected]>
Wed, 30 Apr 2025 05:18:21 +0000 (08:18 +0300)
committerHannu Nyman <[email protected]>
Wed, 30 Apr 2025 06:25:13 +0000 (09:25 +0300)
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]>
utils/coreutils/Makefile

index 3e0bd1ed5a14d976ac1df54e0ee541bdf54d0030..b2438f2aefa8abee9599d452e62b2783600aaaa2 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 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
@@ -22,9 +22,6 @@ PKG_CPE_ID:=cpe:/a:gnu:coreutils
 
 PKG_INSTALL:=1
 PKG_BUILD_PARALLEL:=1
-ifeq ($(CONFIG_GCC_VERSION_14),y)
-       PKG_FIXUP:=autoreconf
-endif
 
 include $(INCLUDE_DIR)/package.mk
 
@@ -134,6 +131,8 @@ CONFIGURE_ARGS += \
        --without-selinux \
        --with-gmp
 
+TARGET_CFLAGS += -std=c17
+
 define Package/coreutils/install
        true
 endef