summaryrefslogtreecommitdiff
path: root/debian/patches/0004-link-with-pcrecpp-and-pcre-if-sunos.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0004-link-with-pcrecpp-and-pcre-if-sunos.patch')
-rw-r--r--debian/patches/0004-link-with-pcrecpp-and-pcre-if-sunos.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/patches/0004-link-with-pcrecpp-and-pcre-if-sunos.patch b/debian/patches/0004-link-with-pcrecpp-and-pcre-if-sunos.patch
new file mode 100644
index 0000000..bf21826
--- /dev/null
+++ b/debian/patches/0004-link-with-pcrecpp-and-pcre-if-sunos.patch
@@ -0,0 +1,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