Commit 170d4ae4 authored by Nils Goroll's avatar Nils Goroll Committed by Geoff Simmons

Add the re2 linker path as rpath

Please replace this with a better solution if known:

When re2 is installed in a non-standard location, pkg-config --libs re2
(as invoked by PKG_CHECK_MODULES) returns -L<path>, but not -R<path>,
so we fix it up to get the right rpath in the vmod so.

Closes !1
parent b9e7f138
Pipeline #328 skipped
......@@ -32,6 +32,14 @@ AC_ARG_WITH([rst2man],
m4_ifndef([VARNISH_PREREQ], AC_MSG_ERROR([Need varnish.m4 -- see README.rst]))
PKG_CHECK_MODULES([RE2], [re2])
if echo "$RE2_LIBS" | grep -- '-L' >/dev/null ; then
if echo "$RE2_LIBS" | grep -- '-R' >/dev/null ; then
:
else
RE2_LIBS=[$(echo $RE2_LIBS | sed 's:-L\([^ ]*\):-L\1 -R\1:')]
fi
fi
VARNISH_PREREQ([master])
VARNISH_VMODS([re2])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment