[gspell] build: use CODE_COVERAGE_LIBS instead of LDFLAGS
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gspell] build: use CODE_COVERAGE_LIBS instead of LDFLAGS
- Date: Sun, 18 Dec 2016 18:40:59 +0000 (UTC)
commit 47b66bff5c6816954245368fdde72050a83a3c8d
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun Oct 9 18:44:02 2016 +0200
build: use CODE_COVERAGE_LIBS instead of LDFLAGS
It requires an up-to-date ax_code_coverage.m4 from autoconf-archive.
configure.ac | 2 +-
gspell/Makefile.am | 18 ++++++++++--------
2 files changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index b53526f..707ab20 100644
--- a/configure.ac
+++ b/configure.ac
@@ -148,7 +148,7 @@ VAPIGEN_CHECK
# Code coverage for unit tests
AX_REQUIRE_DEFINED([AX_CODE_COVERAGE])
-AX_CODE_COVERAGE()
+AX_CODE_COVERAGE
# Valgrind check
AX_REQUIRE_DEFINED([AX_VALGRIND_CHECK])
diff --git a/gspell/Makefile.am b/gspell/Makefile.am
index 825d6cf..9d21481 100644
--- a/gspell/Makefile.am
+++ b/gspell/Makefile.am
@@ -88,13 +88,15 @@ libgspell_core_la_SOURCES = \
nodist_libgspell_core_la_SOURCES = \
$(BUILT_SOURCES)
-libgspell_core_la_CFLAGS = \
+libgspell_core_la_LIBADD = \
+ $(CODE_COVERAGE_LIBS)
+
+libgspell_core_la_CFLAGS = \
$(CODE_COVERAGE_CFLAGS)
-libgspell_core_la_LDFLAGS = \
- -no-undefined \
- $(WARN_LDFLAGS) \
- $(CODE_COVERAGE_LDFLAGS)
+libgspell_core_la_LDFLAGS = \
+ -no-undefined \
+ $(WARN_LDFLAGS)
# The real library.
lib_LTLIBRARIES = libgspell-@GSPELL_API_VERSION@.la
@@ -104,7 +106,8 @@ libgspell_@GSPELL_API_VERSION@_la_SOURCES =
libgspell_@GSPELL_API_VERSION@_la_LIBADD = \
libgspell-core.la \
$(DEP_LIBS) \
- $(GTK_MAC_LIBS)
+ $(GTK_MAC_LIBS) \
+ $(CODE_COVERAGE_LIBS)
libgspell_@GSPELL_API_VERSION@_la_CFLAGS = \
$(CODE_COVERAGE_CFLAGS)
@@ -113,8 +116,7 @@ libgspell_@GSPELL_API_VERSION@_la_LDFLAGS = \
-version-info $(GSPELL_LT_VERSION) \
-no-undefined \
-export-symbols-regex "^gspell_.*" \
- $(WARN_LDFLAGS) \
- $(CODE_COVERAGE_LDFLAGS)
+ $(WARN_LDFLAGS)
libgspell_includedir = $(includedir)/gspell-@GSPELL_API_VERSION@/gspell
libgspell_include_HEADERS = $(gspell_public_headers)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]