Fix support for gold linker: inappropriate dep removal of plugins
[babeltrace.git] / converter / Makefile.am
... / ...
CommitLineData
1AM_CFLAGS = $(PACKAGE_CFLAGS) -I$(top_srcdir)/include -lpopt
2
3bin_PROGRAMS = babeltrace babeltrace-log
4
5lib_LTLIBRARIES = libbabeltrace.la
6
7libbabeltrace_la_SOURCES = \
8 babeltrace-lib.c
9
10libbabeltrace_la_LIBADD = \
11 $(top_builddir)/types/libbabeltrace_types.la \
12 $(top_builddir)/lib/libprio_heap.la
13
14babeltrace_SOURCES = \
15 babeltrace.c
16
17# -Wl,--no-as-needed is needed for recent gold linker who seems to think
18# it knows better and considers libraries with constructors having
19# side-effects as dead code. Note: we put plugin dependencies on the
20# executable rather than the library because libtool does not seem to
21# issue the LDFLAGS before the rpaths, which makes it useless.
22babeltrace_LDFLAGS = -Wl,--no-as-needed
23babeltrace_LDADD = \
24 libbabeltrace.la \
25 $(top_builddir)/formats/libbabeltrace_registry.la \
26 $(top_builddir)/formats/ctf/libctf.la \
27 $(top_builddir)/formats/ctf-text/libctf-text.la \
28 $(top_builddir)/formats/bt-dummy/libbt-dummy.la
29
30babeltrace_log_SOURCES = babeltrace-log.c
31
32babeltrace_log_LDADD = \
33 $(top_builddir)/formats/libbabeltrace_registry.la \
34 $(top_builddir)/formats/ctf/libctf.la
This page took 0.021805 seconds and 4 git commands to generate.