Link statically to internal libraries
[babeltrace.git] / formats / ctf / Makefile.am
index a85e7d3eed0871f0d6679183e497e26541e99983..8d2ee192bc5442d06608ee63c72d2c45ba51f6e6 100644 (file)
@@ -2,16 +2,20 @@ AM_CFLAGS = $(PACKAGE_CFLAGS) -I$(top_srcdir)/include
 
 SUBDIRS = types metadata .
 
-lib_LTLIBRARIES = libctf.la
+lib_LTLIBRARIES = libbabeltrace-ctf.la
 
-libctf_la_SOURCES = \
+libbabeltrace_ctf_la_SOURCES = \
        ctf.c \
        events.c \
        callbacks.c \
        events-private.h
 
-libctf_la_LIBADD = \
+# Request that the linker keeps all static libraries objects.
+libbabeltrace_ctf_la_LDFLAGS = \
+       -Wl,--no-as-needed \
        types/libctf-types.la \
        metadata/libctf-parser.la \
-       metadata/libctf-ast.la \
+       metadata/libctf-ast.la
+       
+libbabeltrace_ctf_la_LIBADD = \
        $(top_builddir)/lib/libbabeltrace.la
This page took 0.031275 seconds and 4 git commands to generate.