+# SPDX-License-Identifier: MIT
+
PLUGINS_PATH = $(abs_top_builddir)/src/plugins
LTTNG_UTILS_PLUGIN_PATH =
# -Wl,--no-as-needed is needed for recent gold linker who seems to think
# it knows better and considers libraries with constructors having
# side-effects as dead code.
-babeltrace2_bin_LDFLAGS = $(LD_NO_AS_NEEDED)
+babeltrace2_bin_LDFLAGS = $(AM_LDFLAGS) $(LD_NO_AS_NEEDED)
# Add all the convenience libraries used by Babeltrace plugins and the
# library. They will be used when embedding plugins (--enable-built-in-plugins),
# not discard the plugins since the CLI does not use their symbols
# directly).
babeltrace2_bin_LDADD = \
- $(top_builddir)/src/argpar/libbabeltrace2-argpar.la \
+ $(top_builddir)/src/argpar/libargpar.la \
$(top_builddir)/src/autodisc/libbabeltrace2-autodisc.la \
$(top_builddir)/src/param-parse/libbabeltrace2-param-parse.la \
$(top_builddir)/src/string-format/libbabeltrace2-string-format.la \