From 39f595d1d85099233e96e4531f583200e0df8438 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 27 Apr 2024 14:57:50 -0700 Subject: [PATCH] gperf: build as C++11 Newer compilers default to building with C++17 as default, which has the register keyword removed and thus errors. Signed-off-by: Rosen Penev --- package/devel/gperf/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/devel/gperf/Makefile b/package/devel/gperf/Makefile index f0f794ee2d..9cf4dbc02b 100644 --- a/package/devel/gperf/Makefile +++ b/package/devel/gperf/Makefile @@ -17,6 +17,8 @@ include $(INCLUDE_DIR)/package.mk HOST_CPPFLAGS:=-I$(HOST_BUILD_DIR)/lib -I$(HOST_BUILD_DIR)/src $(HOST_CPPFLAGS) TARGET_CPPFLAGS:=-I$(PKG_BUILD_DIR)/lib -I$(PKG_BUILD_DIR)/src $(TARGET_CPPFLAGS) +HOST_CXXFLAGS += -std=c++11 + define Package/gperf SECTION:=devel CATEGORY:=Development -- 2.30.2