From 602f3dd5425f06fc56b5bdd830b2195d60a68dc3 Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Wed, 4 Mar 2015 13:48:39 +0100
Subject: [PATCH] add missing rpath.

---
 component/coreutils/buildout.cfg | 3 ++-
 component/wget/buildout.cfg      | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/component/coreutils/buildout.cfg b/component/coreutils/buildout.cfg
index 8583a3537..142f14952 100644
--- a/component/coreutils/buildout.cfg
+++ b/component/coreutils/buildout.cfg
@@ -1,5 +1,6 @@
 [buildout]
 extends =
+  ../gmp/buildout.cfg
   ../xz-utils/buildout.cfg
 parts =
   coreutils-output
@@ -12,7 +13,7 @@ configure-options =
   --prefix=${buildout:parts-directory}/${:_buildout_section_name_} --enable-install-program=tr,basename,uname,cat,cp,ls
 environment =
   PATH=${xz-utils:location}/bin:%(PATH)s
-  LDFLAGS =-Wl,--as-needed
+  LDFLAGS=-Wl,--as-needed -L${gmp:location}/lib -Wl,-rpath=${gmp:location}/lib
 
 [coreutils-output]
 # Shared binary location to ease migration
diff --git a/component/wget/buildout.cfg b/component/wget/buildout.cfg
index 3f0ad6648..9822ca43a 100644
--- a/component/wget/buildout.cfg
+++ b/component/wget/buildout.cfg
@@ -29,5 +29,5 @@ patches =
 environment =
   PATH=${pkgconfig:location}/bin:${xz-utils:location}/bin:%(PATH)s
   PKG_CONFIG_PATH=${openssl:location}/lib/pkgconfig
-  LDFLAGS=-L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib -L${openssl:location}/lib -L${pcre:location}/lib -Wl,-rpath=${pcre:location}/lib
+  LDFLAGS=-L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib -L${openssl:location}/lib -L${pcre:location}/lib -Wl,-rpath=${pcre:location}/lib -Wl,-rpath=${openssl:location}/lib
   CPPFLAGS=-I${zlib:location}/include -I${openssl:location}/include -I${pcre:location}/include
-- 
2.30.9