libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

.gcno files removed from .libs directory


From: Vincent Torri
Subject: .gcno files removed from .libs directory
Date: Fri, 29 Aug 2008 17:38:59 +0200 (CEST)


Hey

I'm compiling two libraries with the options -fprofile-arcs -ftest-coverage passed to gcc.

The first one has .gcno files in his directory and the .libs sub directory. The second one has .gcno files in his directory but not in the .libs subdir. I paste below the Makefile.am of eash lib:

 * First lib (which works)

MAINTAINERCLEANFILES = Makefile.in

AM_CPPFLAGS = \
-I$(top_srcdir)/src/include \
-DPACKAGE_BIN_DIR=\"$(bindir)\" \
-DPACKAGE_LIB_DIR=\"$(libdir)\" \
-DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \
@COVERAGE_CFLAGS@

lib_LTLIBRARIES = libeina.la

libeina_la_SOURCES = \
eina_error.c \
eina_hash.c \
eina_lalloc.c \
eina_inlist.c \
eina_file.c \
eina_mempool.c \
eina_list.c \
eina_module.c \
eina_value.c \
eina_array.c \
eina_magic.c \
eina_main.c \
eina_counter.c \
eina_iterator.c \
eina_accessor.c \
eina_convert.c \
eina_rbtree.c \
eina_stringshare.c

libeina_la_LIBADD = -ldl -lrt @COVERAGE_LIBS@ -lm
libeina_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -version-info @version_info@
libeina_la_DEPENDENCIES = $(top_builddir)/config.h

clean-local:
        @rm -rf *.gcno


 * Second lib (which does not work):

MAINTAINERCLEANFILES = Makefile.in

AM_CPPFLAGS = \
-I. \
-I$(top_srcdir)/src/include \
@COVERAGE_CFLAGS@

controllerdir = $(libdir)/eina/chained_pool/
controller_LTLIBRARIES = eina_chained_mempool.la

eina_chained_mempool_la_SOURCES = \
eina_chained_mempool.c

eina_chained_mempool_la_LIBADD = $(top_builddir)/src/lib/libeina.la @COVERAGE_LIBS@ eina_chained_mempool_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
eina_chained_mempool_la_DEPENDENCIES = $(top_builddir)/src/lib/libeina.la

clean-local:
        @rm -rf *.gcno



there is a difference in the creation of the libs.


libtool explicitely removes the .gcno files in the 2nd case:

libtool: link: rm -fr  .libs/eina_chained_mempool.gcno

does someone know why libtool remove the .gcno files. And of course, does someone know a way to keep those files ?

thank you

Vincent Torri




reply via email to

[Prev in Thread] Current Thread [Next in Thread]