summaryrefslogtreecommitdiff
path: root/debian/patches/0004-link-with-pcrecpp-and-pcre-if-sunos.patch
blob: bf218266513bfed261c5e60849cfb8d62be67deb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Igor Pashev <pashev.igor@gmail.com>
Date: Thu, 14 Jun 2012 23:23:08 +0000
Subject: link with pcrecpp and pcre if sunos

---
 SConstruct |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/SConstruct b/SConstruct
index 418cb4c..3ff81f8 100644
--- a/SConstruct
+++ b/SConstruct
@@ -552,6 +552,9 @@ elif "sunos5" == os.sys.platform:
      solaris = True
      env.Append( CPPDEFINES=[ "__sunos__" ] )
      env.Append( LIBS=["socket","resolv"] )
+     # use system-wide pcre
+     env.Append( CPPPATH=["/usr/include"] )
+     env.Append( LIBS=["pcrecpp", "pcre"] )
 
 elif os.sys.platform.startswith( "freebsd" ):
     nix = True