From de04b895777e66116efdd72e631a741e6d077664 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Fri, 26 Aug 2011 15:03:56 +0200
Subject: [PATCH] Expose LD_LIBRARY_PATH too.

---
 component/slapos/buildout.cfg | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/component/slapos/buildout.cfg b/component/slapos/buildout.cfg
index 244d9164e..51976b667 100644
--- a/component/slapos/buildout.cfg
+++ b/component/slapos/buildout.cfg
@@ -53,6 +53,7 @@ CFLAGS=-I${bzip2:location}/include -I${gdbm:location}/include -I${gettext:locati
 CPPFLAGS=${:CFLAGS}
 LDFLAGS=-L${bzip2:location}/lib -Wl,-rpath=${bzip2:location}/lib -L${gdbm:location}/lib -Wl,-rpath=${gdbm:location}/lib -L${gettext:location}/lib -Wl,-rpath=${gettext:location}/lib -L${glib:location}/lib -Wl,-rpath=${glib:location}/lib -L${libxml2:location}/lib -Wl,-rpath=${libxml2:location}/lib -L${libxslt:location}/lib -Wl,-rpath=${libxslt:location}/lib -L${ncurses:location}/lib -Wl,-rpath=${ncurses:location}/lib -L${openssl:location}/lib -Wl,-rpath=${openssl:location}/lib -L${popt:location}/lib -Wl,-rpath=${popt:location}/lib -L${readline:location}/lib -Wl,-rpath=${readline:location}/lib -L${sqlite3:location}/lib -Wl,-rpath=${sqlite3:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib
 PKG_CONFIG_PATH=${glib:location}/lib/pkgconfig:${libxml2:location}/lib/pkgconfig:${libxslt:location}/lib/pkgconfig:${openssl:location}/lib/pkgconfig:${popt:location}/lib/pkgconfig:${python2.7:location}/lib/pkconfig:${sqlite3:location}/lib/pkconfig
+LD_LIBRARY_PATH=${bzip2:location}/lib:${gdbm:location}/lib:${gettext:location}/lib:${glib:location}/lib:${libxml2:location}/lib:${libxslt:location}/lib:${ncurses:location}/lib:${openssl:location}/lib:${popt:location}/lib:${readline:location}/lib:${sqlite3:location}/lib:${zlib:location}/lib
 
 [cfg-environment]
 # Section exposes SlapOS default environment as configuration file.
@@ -64,6 +65,7 @@ input = inline:
   CPPFLAGS=${environment:CPPFLAGS}
   LDFLAGS=${environment:LDFLAGS}
   PKG_CONFIG_PATH=${environment:PKG_CONFIG_PATH}
+  LD_LIBRARY_PATH=${environment:LD_LIBRARY_PATH}
 output = ${buildout:directory}/environment.cfg
 
 [sh-environment]
@@ -75,6 +77,7 @@ input = inline:
   CPPFLAGS="${environment:CPPFLAGS}"
   LDFLAGS="${environment:LDFLAGS}"
   PKG_CONFIG_PATH="${environment:PKG_CONFIG_PATH}"
+  LD_LIBRARY_PATH="${environment:LD_LIBRARY_PATH}"
 output = ${buildout:directory}/environment.sh
 
 [lxml-python]
-- 
2.30.9