[Buildroot] [PATCH 11/38] package infrastructure: add LD_LIBRARY_PATH

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sun Feb 21 17:46:49 UTC 2010


During the compilation of target packages, host tools might be used,
and in turn, they might use host libraries installed in
$(HOST_DIR)/usr/lib. Therefore, we pass a LD_LIBRARY_PATH variable
when building packages.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
 package/Makefile.in |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/package/Makefile.in b/package/Makefile.in
index bc0ac7c..d976481 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -236,7 +236,11 @@ TARGET_CONFIGURE_ENV=\
 	LDFLAGS="$(TARGET_LDFLAGS)" \
 	FCFLAGS="$(TARGET_FCFLAGS)" \
 
-TARGET_MAKE_ENV=PATH=$(TARGET_PATH)
+# During the compilation of target packages, host tools might be used,
+# and in turn, they might use host libraries installed in
+# $(HOST_DIR)/usr/lib
+TARGET_MAKE_ENV=PATH=$(TARGET_PATH) \
+		LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib"
 
 HOST_CONFIGURE_OPTS=PATH=$(HOST_PATH) \
 		AR="$(HOSTAR)" \
-- 
1.6.3.3




More information about the buildroot mailing list