From: Rosen Penev Date: Sat, 27 Apr 2024 21:57:50 +0000 (-0700) Subject: gperf: build as C++11 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=39f595d1d85099233e96e4531f583200e0df8438;p=openwrt%2Fstaging%2Fdangole.git 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 --- 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