stefan pushed a commit to branch master.

commit 5181a4d0efd49a87562cf6612e21f8746ad413b6
Author: Stefan Schmidt <>
Date:   Mon Mar 7 14:33:15 2016 +0100

    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 
    link against as second argument. The symbol name also has wto leading
    underscores for me.
generated: undefined
    reference to `__gcov_init'
--- | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ b/
index 33cd584..7fde8c3 100644
--- a/
+++ b/
@@ -327,7 +327,7 @@ EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
 if test "${want_coverage}" = "yes" ; then
    AC_CHECK_PROG([have_lcov], [lcov], [yes], [no])
    if test "x${have_lcov}" = "xyes" ; then
-      AC_SEARCH_LIBS([gcov], [_gcov_init])
+      AC_SEARCH_LIBS([__gcov_init], [gcov])
       EFL_CHECK_COMPILER_FLAGS([EFLALL], [-fprofile-arcs -ftest-coverage])
       EFL_CHECK_COMPILER_FLAGS([EFLALL], [-fprofile-instr-generate 
       EFL_CHECK_LINKER_FLAGS([EFLALL], [-fprofile-instr-generate 


Reply via email to