18751416 pcre-config --libs suggests usage of -R/usr/lib
authorEsha Wang <esha.wang@oracle.com>
Wed, 05 Oct 2016 17:30:19 -0700
changeset 7058 a62a393ea750
parent 7057 8a0bda69e5a0
child 7059 f2f4b9922ef9
18751416 pcre-config --libs suggests usage of -R/usr/lib
components/pcre/patches/05-pcre-config.in.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/pcre/patches/05-pcre-config.in.patch	Wed Oct 05 17:30:19 2016 -0700
@@ -0,0 +1,16 @@
+Solaris specific.
+/usr/lib/ is default library path and thus it shouldn't be in RPATH and RUNPATH.
+-L/-R with /usr/lib are not necessary for Solaris. The linker knows better.
+
+--- pcre-8.38/pcre-config.in_orig	2016-10-05 13:05:50.522096706 +0000
++++ pcre-8.38/pcre-config.in	2016-10-05 13:06:03.384163020 +0000
+@@ -34,9 +34,6 @@
+ 
+ libR=
+ case `uname -s` in
+-  *SunOS*)
+-  libR=" -R@libdir@"
+-  ;;
+   *BSD*)
+   libR=" -Wl,-R@libdir@"
+   ;;