From dd259400db00a1e80f2f58d4243f924de33bb54d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Tue, 24 May 2011 17:33:00 +0200
Subject: [PATCH] Link and compile against locally provided pcre.

---
 slapos/profile/grep.cfg | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/slapos/profile/grep.cfg b/slapos/profile/grep.cfg
index 975406b762..6ee6c048c4 100644
--- a/slapos/profile/grep.cfg
+++ b/slapos/profile/grep.cfg
@@ -1,4 +1,6 @@
 [buildout]
+extends =
+  pcre.cfg
 parts =
   grep
 
@@ -7,4 +9,5 @@ recipe = hexagonit.recipe.cmmi
 url = http://ftp.gnu.org/gnu/grep/grep-2.8.tar.gz
 md5sum = cb2dfc502c5afc7a4a6e5f6cefd6850e
 environment =
-  LDFLAGS =-Wl,--as-needed
+  PKG_CONFIG_PATH=${pcre:location}/lib/pkgconfig
+  LDFLAGS =-Wl,--as-needed -Wl,-rpath -Wl,${pcre:location}/lib
-- 
2.30.9