summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2016-03-07 14:33:15 +0100
committerStefan Schmidt <stefan@osg.samsung.com>2016-03-07 14:36:27 +0100
commit5181a4d0efd49a87562cf6612e21f8746ad413b6 (patch)
tree155907fbaac781af8aae167e4684a09a38d4298f /configure.ac
parentda309d6863a75b538accff99b2900c100797d532 (diff)
build: fix linking with coverage enabled after osx fix
After aca6fc8c3611b5e7d4faaed61e52dedf057d7219 there have been problems when linking when having coverage enabled. AC_SEARCH_LIBS was used wrongly here. You need function name first and lib to link against as second argument. The symbol name also has wto leading underscores for me. /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../x86_64-pc-linux-gnu/bin/ld generated: undefined reference to `__gcov_init'
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 33cd584..7fde8c3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -327,7 +327,7 @@ EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
327if test "${want_coverage}" = "yes" ; then 327if test "${want_coverage}" = "yes" ; then
328 AC_CHECK_PROG([have_lcov], [lcov], [yes], [no]) 328 AC_CHECK_PROG([have_lcov], [lcov], [yes], [no])
329 if test "x${have_lcov}" = "xyes" ; then 329 if test "x${have_lcov}" = "xyes" ; then
330 AC_SEARCH_LIBS([gcov], [_gcov_init]) 330 AC_SEARCH_LIBS([__gcov_init], [gcov])
331 EFL_CHECK_COMPILER_FLAGS([EFLALL], [-fprofile-arcs -ftest-coverage]) 331 EFL_CHECK_COMPILER_FLAGS([EFLALL], [-fprofile-arcs -ftest-coverage])
332 EFL_CHECK_COMPILER_FLAGS([EFLALL], [-fprofile-instr-generate -fcoverage-mapping]) 332 EFL_CHECK_COMPILER_FLAGS([EFLALL], [-fprofile-instr-generate -fcoverage-mapping])
333 EFL_CHECK_LINKER_FLAGS([EFLALL], [-fprofile-instr-generate -fcoverage-mapping]) 333 EFL_CHECK_LINKER_FLAGS([EFLALL], [-fprofile-instr-generate -fcoverage-mapping])