From: Daniel Golle Date: Wed, 9 Jul 2025 02:39:53 +0000 (+0100) Subject: unifdef: fix build with GCC 15 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=ab6ebc5c01a11835cdfcb9468428ba89cd5081af;p=feed%2Fpackages.git unifdef: fix build with GCC 15 Using GCC compiler on the host breaks the build due to 'constexpr' being a reserved keyword in C22. Build expecting the sources to be in GNU17 standard fixes that. Signed-off-by: Daniel Golle --- diff --git a/devel/unifdef/Makefile b/devel/unifdef/Makefile index a0eceef35f..2dc499d15b 100644 --- a/devel/unifdef/Makefile +++ b/devel/unifdef/Makefile @@ -17,6 +17,9 @@ HOST_BUILD_PARALLEL:=1 include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/host-build.mk +HOST_CFLAGS += -std=gnu17 +TARGET_CFLAGS += -std=gnu17 + define Package/unifdef SECTION:=devel CATEGORY:=Development