From: Mathieu Desnoyers Date: Thu, 9 Jun 2011 00:39:47 +0000 (-0400) Subject: Add missing -lwfqueue to add rcu flavors X-Git-Tag: v0.6.0~32 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e7ca6e41edaf162282d378c4cef2c81801e8af18;p=urcu.git Add missing -lwfqueue to add rcu flavors Otherwise, linking with the flavor .so leads to: /usr/local/lib/liburcu-bp.so: undefined reference to `cds_wfq_enqueue' /usr/local/lib/liburcu-bp.so: undefined reference to `cds_wfq_init' /usr/local/lib/liburcu-bp.so: undefined reference to `cds_wfq_node_init' Signed-off-by: Mathieu Desnoyers --- diff --git a/Makefile.am b/Makefile.am index 1589884..702fd6f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -34,16 +34,19 @@ lib_LTLIBRARIES = liburcu.la liburcu-qsbr.la liburcu-mb.la liburcu-signal.la \ libwfqueue.la libwfstack.la librculfqueue.la librculfstack.la liburcu_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT) +liburcu_la_CFLAGS = -lwfqueue liburcu_qsbr_la_SOURCES = urcu-qsbr.c urcu-pointer.c $(COMPAT) +liburcu_qsbr_la_CFLAGS = -lwfqueue liburcu_mb_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT) -liburcu_mb_la_CFLAGS = -DRCU_MB +liburcu_mb_la_CFLAGS = -DRCU_MB -lwfqueue liburcu_signal_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT) -liburcu_signal_la_CFLAGS = -DRCU_SIGNAL +liburcu_signal_la_CFLAGS = -DRCU_SIGNAL -lwfqueue liburcu_bp_la_SOURCES = urcu-bp.c urcu-pointer.c $(COMPAT) +liburcu_bp_la_CFLAGS = -lwfqueue libwfqueue_la_SOURCES = wfqueue.c $(COMPAT) libwfstack_la_SOURCES = wfstack.c $(COMPAT) @@ -51,4 +54,4 @@ librculfqueue_la_SOURCES = rculfqueue.c $(COMPAT) librculfstack_la_SOURCES = rculfstack.c $(COMPAT) pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = liburcu.pc liburcu-bp.pc \ No newline at end of file +pkgconfig_DATA = liburcu.pc liburcu-bp.pc