mirror of
https://github.com/openwrt/packages.git
synced 2025-12-10 12:41:22 +00:00
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 <daniel@makrotopia.org>
This commit is contained in:
committed by
Tianling Shen
parent
362b8cda74
commit
ab6ebc5c01
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user