Port: Add support for linkers with no support for 'no-as-needed'
[babeltrace.git] / converter / Makefile.am
1 AM_CFLAGS = $(PACKAGE_CFLAGS) -I$(top_srcdir)/include
2 AM_LDFLAGS = -lpopt
3
4 bin_PROGRAMS = babeltrace babeltrace-log
5
6 babeltrace_SOURCES = \
7 babeltrace.c
8
9 # -Wl,--no-as-needed is needed for recent gold linker who seems to think
10 # it knows better and considers libraries with constructors having
11 # side-effects as dead code.
12 babeltrace_LDFLAGS = $(LD_NO_AS_NEEDED)
13 babeltrace_LDADD = \
14 $(top_builddir)/lib/libbabeltrace.la \
15 $(top_builddir)/formats/ctf/libbabeltrace-ctf.la \
16 $(top_builddir)/compat/libcompat.la \
17 $(top_builddir)/formats/ctf-text/libbabeltrace-ctf-text.la \
18 $(top_builddir)/formats/ctf-metadata/libbabeltrace-ctf-metadata.la \
19 $(top_builddir)/formats/bt-dummy/libbabeltrace-dummy.la \
20 $(top_builddir)/formats/lttng-live/libbabeltrace-lttng-live.la
21
22 babeltrace_log_SOURCES = babeltrace-log.c
23
24 babeltrace_log_LDADD = \
25 $(top_builddir)/lib/libbabeltrace.la \
26 $(top_builddir)/formats/ctf/libbabeltrace-ctf.la \
27 $(top_builddir)/compat/libcompat.la
28
29 if BABELTRACE_BUILD_WITH_LIBUUID
30 babeltrace_log_LDADD += -luuid
31 endif
32 if BABELTRACE_BUILD_WITH_LIBC_UUID
33 babeltrace_log_LDADD += -lc
34 endif
35
36 if BABELTRACE_BUILD_WITH_MINGW
37 babeltrace_log_LDADD += -lrpcrt4 -lintl -liconv -lole32 -lpopt -lpthread
38 babeltrace_LDADD += -lrpcrt4 -lintl -liconv -lole32 -lpopt -lpthread
39 endif
This page took 0.051431 seconds and 5 git commands to generate.