gperf: build as C++11
authorRosen Penev <rosenp@gmail.com>
Sat, 27 Apr 2024 21:57:50 +0000 (14:57 -0700)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 9 May 2024 22:11:10 +0000 (00:11 +0200)
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>
package/devel/gperf/Makefile

index f0f794ee2d91e837f4c7daed8b8e3b3e809aec65..9cf4dbc02b9f4f8be8fc9fd354081535abf1b4f6 100644 (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