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 <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2024-04-27 14:57:50 -07:00 committed by Hauke Mehrtens
parent 803c00e9b8
commit 39f595d1d8

View File

@ -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