[openwrt/openwrt] gperf: build as C++11
LEDE Commits
lede-commits at lists.infradead.org
Thu May 9 15:11:48 PDT 2024
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/39f595d1d85099233e96e4531f583200e0df8438
commit 39f595d1d85099233e96e4531f583200e0df8438
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Sat Apr 27 14:57:50 2024 -0700
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 at gmail.com>
---
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
More information about the lede-commits
mailing list