fluent-bit: fix build on darwin

This commit is contained in:
Sandro 2020-11-03 00:52:05 +01:00 committed by Alyssa Ross
parent b2a20c2a51
commit d1de45ad61
2 changed files with 16 additions and 0 deletions

View file

@ -13,6 +13,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake flex bison ];
patches = [ ./fix-luajit-darwin.patch ];
postPatch = ''
substituteInPlace src/CMakeLists.txt \
--replace /lib/systemd $out/lib/systemd

View file

@ -0,0 +1,14 @@
diff -Naur fluent-bit.old/cmake/luajit.cmake fluent-bit.new/cmake/luajit.cmake
--- fluent-bit.old/cmake/luajit.cmake
+++ fluent-bit.new/cmake/luajit.cmake
@@ -11,10 +11,6 @@
set(LUAJIT_SRC ${CMAKE_CURRENT_SOURCE_DIR}/${FLB_PATH_LIB_LUAJIT})
set(LUAJIT_DEST ${CMAKE_CURRENT_BINARY_DIR})
-if (CMAKE_SYSTEM_NAME MATCHES "Darwin")
- set(CFLAGS "${CFLAGS} -isysroot ${CMAKE_OSX_SYSROOT}")
-endif()
-
# luajit (UNIX)
# =============
ExternalProject_Add(luajit