Commit 2ce6a7eb authored by Marek Vavrusa's avatar Marek Vavrusa Committed by Ondřej Surý

fixed broken pkgconfig when liburcu is not present

the Requires list contained a trailing comma if liburcu wasn't present,
pkg-config as of 0.29 treats this as an error, resulting in failed
package --cflags and --atleast-version lookups

this change treats libdnssec as mandatory, and extras must be prefixed with
comma inside the expanded variables
parent ec172db4
......@@ -259,7 +259,7 @@ AS_IF([test "$enable_daemon" = "yes"],[
AS_IF([test "$with_urcu" != "no"], [
PKG_CHECK_MODULES([liburcu], liburcu, [
liburcu_PKGCONFIG="liburcu >= 0.4.0"
liburcu_PKGCONFIG=",liburcu >= 0.4.0"
......@@ -7,7 +7,7 @@ Name: libknot
Description: Knot DNS library
Requires.private: libdnssec = @PACKAGE_VERSION@, @liburcu_PKGCONFIG@
Requires.private: libdnssec = @PACKAGE_VERSION@ @liburcu_PKGCONFIG@
Libs: -L${libdir} -lknot
Libs.private: -ldnssec @lmdb_LIBS@
Cflags: -I${includedir} @lmdb_CFLAGS@
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