The urcu-common library contains common code like the write-free queue
and compat code, each urcu flavor library is dynamicly linked with it.
Most but not all toolchains will automatically link an executable with a
transitive depency of an explicitly linked library if said binary uses a
symbol from the transitive dependency.
Since this behavior is not present in all toolchains, add
'-lurcu-common' to the 'Libs' field of each flavors pkg-config file so
that executables using symbols from urcu-common can be reliably linked
using pkg-config.
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Description: A userspace RCU (read-copy-update) library, bulletproof version
Version: @PACKAGE_VERSION@
Requires:
Description: A userspace RCU (read-copy-update) library, bulletproof version
Version: @PACKAGE_VERSION@
Requires:
-Libs: -L${libdir} -lurcu-bp
+Libs: -L${libdir} -lurcu-common -lurcu-bp
Description: Data structures leveraging RCU and atomic operations to provide efficient concurrency-aware storage
Version: @PACKAGE_VERSION@
Requires:
Description: Data structures leveraging RCU and atomic operations to provide efficient concurrency-aware storage
Version: @PACKAGE_VERSION@
Requires:
-Libs: -L${libdir} -lurcu-cds
+Libs: -L${libdir} -lurcu-common -lurcu-cds
Description: A userspace RCU (read-copy-update) library, memory barriers version
Version: @PACKAGE_VERSION@
Requires:
Description: A userspace RCU (read-copy-update) library, memory barriers version
Version: @PACKAGE_VERSION@
Requires:
-Libs: -L${libdir} -lurcu-mb
+Libs: -L${libdir} -lurcu-common -lurcu-mb
Description: A userspace RCU (read-copy-update) library, quiescent state version
Version: @PACKAGE_VERSION@
Requires:
Description: A userspace RCU (read-copy-update) library, quiescent state version
Version: @PACKAGE_VERSION@
Requires:
-Libs: -L${libdir} -lurcu-qsbr
+Libs: -L${libdir} -lurcu-common -lurcu-qsbr
Description: A userspace RCU (read-copy-update) library, signal version
Version: @PACKAGE_VERSION@
Requires:
Description: A userspace RCU (read-copy-update) library, signal version
Version: @PACKAGE_VERSION@
Requires:
-Libs: -L${libdir} -lurcu-signal
+Libs: -L${libdir} -lurcu-common -lurcu-signal
Description: A userspace RCU (read-copy-update) library, standard version
Version: @PACKAGE_VERSION@
Requires:
Description: A userspace RCU (read-copy-update) library, standard version
Version: @PACKAGE_VERSION@
Requires:
-Libs: -L${libdir} -lurcu
+Libs: -L${libdir} -lurcu-common -lurcu