From e7ca6e41edaf162282d378c4cef2c81801e8af18 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Wed, 8 Jun 2011 20:39:47 -0400 Subject: [PATCH] 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 --- Makefile.am | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 -- 2.34.1