From dedbc69022ba0beaf259463ac8082c86776f7e88 Mon Sep 17 00:00:00 2001 From: Thomas Devoogdt Date: Mon, 30 Jan 2023 13:19:28 +0100 Subject: [PATCH] package/fluent-bit: only require a C compiler Fixes: - http://autobuild.buildroot.net/results/007/007c7c69e54b8ff663891da4535e2e95d40c42a2/build-end.log - http://autobuild.buildroot.net/results/ede/ede6f9fb67c0c26ff02e71a3d20e3d4344ea59f0/build-end.log Signed-off-by: Thomas Devoogdt [Peter: replace by upstream patch] Signed-off-by: Peter Korsgaard --- ...eLists.txt-only-require-a-C-compiler.patch | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 package/fluent-bit/0001-CMakeLists.txt-only-require-a-C-compiler.patch diff --git a/package/fluent-bit/0001-CMakeLists.txt-only-require-a-C-compiler.patch b/package/fluent-bit/0001-CMakeLists.txt-only-require-a-C-compiler.patch new file mode 100644 index 0000000000..e71bcf0c0d --- /dev/null +++ b/package/fluent-bit/0001-CMakeLists.txt-only-require-a-C-compiler.patch @@ -0,0 +1,27 @@ +From 7bcb502ebdcd647d6b83c972805e734ad522eb1a Mon Sep 17 00:00:00 2001 +From: Thomas Devoogdt +Date: Mon, 30 Jan 2023 09:10:37 +0100 +Subject: [PATCH] CMakeLists.txt: only require a C compiler + +Fluent-bit is mostly written in C, +so don't require CXX in the top-level project. + +Signed-off-by: Thomas Devoogdt +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index a7adb02de..3ff7360d8 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,5 +1,5 @@ + cmake_minimum_required(VERSION 3.12) +-project(fluent-bit) ++project(fluent-bit C) + + # CMP0069 ensures that LTO is enabled for all compilers + cmake_policy(SET CMP0069 NEW) +-- +2.30.2 +