0003-CMakeLists.txt-disable-cxx-support-for-librdkafka-77.patch 898 B

1234567891011121314151617181920212223242526272829
  1. From 7f3fc55b734db2d28af63c393b52bc238af9f20a Mon Sep 17 00:00:00 2001
  2. From: Thomas Devoogdt <thomas.devoogdt@barco.com>
  3. Date: Tue, 25 Jul 2023 10:00:36 +0200
  4. Subject: [PATCH] CMakeLists.txt: disable cxx support for librdkafka #7741
  5. Fluent-bit is c only, so no need to compile cxx.
  6. This fixes also a compile error in buildroot.
  7. Upstream: https://github.com/fluent/fluent-bit/pull/7765
  8. Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
  9. ---
  10. CMakeLists.txt | 1 +
  11. 1 file changed, 1 insertion(+)
  12. diff --git a/CMakeLists.txt b/CMakeLists.txt
  13. index 3229420c6..2694f189f 100644
  14. --- a/CMakeLists.txt
  15. +++ b/CMakeLists.txt
  16. @@ -979,6 +979,7 @@ if(FLB_BACKTRACE)
  17. endif()
  18. if(FLB_IN_KAFKA OR FLB_OUT_KAFKA)
  19. + FLB_OPTION(RDKAFKA_BUILD_CXX Off)
  20. FLB_OPTION(RDKAFKA_BUILD_STATIC On)
  21. FLB_OPTION(RDKAFKA_BUILD_EXAMPLES Off)
  22. FLB_OPTION(RDKAFKA_BUILD_TESTS Off)
  23. --
  24. 2.34.1