X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Flib%2Ftest-plugin-plugins%2FMakefile.am;h=62e48f7e17f241d4a221b365c2e221f740638871;hb=5e8a0751ae0c418a615025d1da10bc84f91b3d97;hp=dc4b5a2486fef3b80cfa632ca3f4f1bc9e86b686;hpb=cbb9e0b1ec169269733bcd689294b1fd8be59a2c;p=babeltrace.git diff --git a/tests/lib/test-plugin-plugins/Makefile.am b/tests/lib/test-plugin-plugins/Makefile.am index dc4b5a24..62e48f7e 100644 --- a/tests/lib/test-plugin-plugins/Makefile.am +++ b/tests/lib/test-plugin-plugins/Makefile.am @@ -1,34 +1,23 @@ -AM_CFLAGS = $(PACKAGE_CFLAGS) -I$(top_srcdir)/include -COMMONLIBADD = \ - $(top_builddir)/lib/libbabeltrace.la \ - $(top_builddir)/formats/ctf/libbabeltrace-ctf.la +# SPDX-License-Identifier: MIT -# It seems like Automake won't make Libtool create a shared object -# (which we need here since we're building plugins) with a noinst_ -# destination (no install). Indeed we don't want to install those test -# plugins. Libtool creates a shared object when it gets an -rpath -# argument. In this case, Libtool does not seem to care much about -# the actual argument, so we use / (because Libtool needs an absolute -# path), which in the end is not even part of the linked object's -# rpath. -# -# -module makes it possible to not use the `lib` prefix and it makes -# sure that all symbols are dynamically exported. -COMMONLDFLAGS = -rpath / -avoid-version -module - -noinst_LTLIBRARIES = plugin-minimal.la plugin-sfs.la plugin-invalid.la +noinst_LTLIBRARIES = plugin-minimal.la plugin-sfs.la # the minimal plugin plugin_minimal_la_SOURCES = minimal.c -plugin_minimal_la_LDFLAGS = $(COMMONLDFLAGS) -plugin_minimal_la_LIBADD = $(COMMONLIBADD) +plugin_minimal_la_LDFLAGS = \ + $(LT_NO_UNDEFINED) \ + -rpath / -avoid-version -module $(LD_NOTEXT) +plugin_minimal_la_LIBADD = \ + $(top_builddir)/src/lib/libbabeltrace2.la \ + $(top_builddir)/src/common/libbabeltrace2-common.la \ + $(top_builddir)/src/logging/libbabeltrace2-logging.la # source/filter/sink plugin plugin_sfs_la_SOURCES = sfs.c -plugin_sfs_la_LDFLAGS = $(COMMONLDFLAGS) -plugin_sfs_la_LIBADD = $(COMMONLIBADD) - -# invalid plugin -plugin_invalid_la_SOURCES = invalid.c -plugin_invalid_la_LDFLAGS = $(COMMONLDFLAGS) -plugin_invalid_la_LIBADD = $(COMMONLIBADD) +plugin_sfs_la_LDFLAGS = \ + $(LT_NO_UNDEFINED) \ + -rpath / -avoid-version -module $(LD_NOTEXT) +plugin_sfs_la_LIBADD = \ + $(top_builddir)/src/lib/libbabeltrace2.la \ + $(top_builddir)/src/common/libbabeltrace2-common.la \ + $(top_builddir)/src/logging/libbabeltrace2-logging.la