Skip to contentSkip to conversation

fix: Re-add link to urcu-bp for _LGPL_SOURCE tests

PATCH Jérémie Galarneau 1 participant 1 message Nov 5, 2019 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Merged in master.

Thanks!
Jérémie

Quoted 66 lines · Michael Jeanson

Tests with tracepoints defined with _LGPL_SOURCE require to be explicitly linked against urcu-bp.

---
 tests/regression/ust/multi-session/Makefile.am      | 2 +-
 tests/utils/testapp/gen-ust-events/Makefile.am      | 2 +-
 tests/utils/testapp/gen-ust-nevents-str/Makefile.am | 2 +-
 tests/utils/testapp/gen-ust-nevents/Makefile.am     | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
tests/regression/ust/multi-session/Makefile.am +1 -1
index 0d807a878..676c26f21 100644
@@ -2,7 +2,7 @@ AM_CFLAGS += -I$(srcdir)
 
 noinst_PROGRAMS = gen-nevents
 gen_nevents_SOURCES = gen-nevents.c tp.c ust_gen_nevents.h
-gen_nevents_LDADD = $(UST_LIBS) $(DL_LIBS)
+gen_nevents_LDADD = $(UST_LIBS) -lurcu-bp $(DL_LIBS)
 
 noinst_SCRIPTS = test_multi_session
 EXTRA_DIST = test_multi_session
tests/utils/testapp/gen-ust-events/Makefile.am +1 -1
index 38e620d75..8918fc80d 100644
@@ -4,7 +4,7 @@ AM_CPPFLAGS += -I$(top_srcdir)/tests/utils -I$(srcdir) \
 if HAVE_LIBLTTNG_UST_CTL
 noinst_PROGRAMS = gen-ust-events
 gen_ust_events_SOURCES = gen-ust-events.c tp.c tp.h
-gen_ust_events_LDADD = $(UST_LIBS) \
+gen_ust_events_LDADD = $(UST_LIBS) -lurcu-bp \
 		$(top_builddir)/tests/utils/libtestutils.la \
 		$(DL_LIBS)
 endif
tests/utils/testapp/gen-ust-nevents-str/Makefile.am +1 -1
index 0e961b4c4..27cb9efa7 100644
@@ -4,7 +4,7 @@ AM_CPPFLAGS += -I$(srcdir) -I$(top_srcdir)/tests/utils \
 if HAVE_LIBLTTNG_UST_CTL
 noinst_PROGRAMS = gen-ust-nevents-str
 gen_ust_nevents_str_SOURCES = gen-ust-nevents-str.c tp.c tp.h
-gen_ust_nevents_str_LDADD = $(UST_LIBS) \
+gen_ust_nevents_str_LDADD = $(UST_LIBS) -lurcu-bp \
 		$(top_builddir)/tests/utils/libtestutils.la \
 		$(DL_LIBS)
 endif
tests/utils/testapp/gen-ust-nevents/Makefile.am +1 -1
index c20910bd8..f85d35a13 100644
@@ -4,7 +4,7 @@ AM_CPPFLAGS += -I$(srcdir) -I$(top_srcdir)/tests/utils \
 if HAVE_LIBLTTNG_UST_CTL
 noinst_PROGRAMS = gen-ust-nevents
 gen_ust_nevents_SOURCES = gen-ust-nevents.c tp.c tp.h
-gen_ust_nevents_LDADD = $(UST_LIBS) \
+gen_ust_nevents_LDADD = $(UST_LIBS) -lurcu-bp \
 		$(top_builddir)/tests/utils/libtestutils.la \
 		$(DL_LIBS)
 endif
Signature · 1 line
2.17.1