unifdef: fix build with GCC 15
authorDaniel Golle <[email protected]>
Wed, 9 Jul 2025 02:39:53 +0000 (03:39 +0100)
committerTianling Shen <[email protected]>
Wed, 9 Jul 2025 10:50:33 +0000 (18:50 +0800)
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 <[email protected]>
devel/unifdef/Makefile

index a0eceef35fd16c8c4db667c53195b7dd6e22dd9e..2dc499d15bf226b1152eb78a26c6c9e047370332 100644 (file)
@@ -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