From 119d0af314ff1ed2550f4e774bbda3b5bf2d11ed Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Thu, 19 Oct 2023 10:20:21 +0900
Subject: [PATCH] component/fluent-bit: add rpath for zlib

On debian 11.2 with zlib1g-dev installed this uses system zlib
---
 component/fluent-bit/buildout.cfg | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/component/fluent-bit/buildout.cfg b/component/fluent-bit/buildout.cfg
index 49608e2c1..1e4341de5 100644
--- a/component/fluent-bit/buildout.cfg
+++ b/component/fluent-bit/buildout.cfg
@@ -6,6 +6,7 @@ extends =
   ../libyaml/buildout.cfg
   ../openssl/buildout.cfg
   ../patch/buildout.cfg
+  ../zlib/buildout.cfg
 
 [fluent-bit]
 recipe = slapos.recipe.cmmi
@@ -20,7 +21,7 @@ configure-options =
   -DOPENSSL_ROOT_DIR=${openssl:location}
 environment =
   PATH=${bison:location}/bin:${flex:location}/bin:%(PATH)s
-  LDFLAGS=-Wl,-rpath=${libyaml:location}/lib -Wl,-rpath=${openssl:location}/lib
+  LDFLAGS=-Wl,-rpath=${libyaml:location}/lib -Wl,-rpath=${openssl:location}/lib -Wl,-rpath=${zlib:location}/lib
 patch-options = -p1
 patches =
   ${:_profile_base_location_}/0001-slapos-don-t-try-to-install-system-startup-script.patch#7bf6e1b53c371db918dcc3778c6b28ed
-- 
2.30.9