Skip to content

Commit

Permalink
libgcov is needed for gcov debug builds.
Browse files Browse the repository at this point in the history
Trying without it failed on FreeBSD.  Other platforms didn't seem to
mind.
  • Loading branch information
dustin committed Jan 30, 2009
1 parent 0d56047 commit 2a381c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ memcached_SOURCES = memcached.c slabs.c slabs.h items.c items.h assoc.c assoc.h
memcached_debug_SOURCES = $(memcached_SOURCES)
memcached_CPPFLAGS = -DNDEBUG
memcached_LDADD = @DTRACE_OBJ@
memcached_debug_LDADD = @DTRACE_DEBUG_OBJ@
memcached_debug_LDADD = @DTRACE_DEBUG_OBJ@ @PROFILER_LDFLAGS@
memcached_DEPENDENCIES = @DTRACE_OBJ@
memcached_debug_DEPENDENCIES = @DTRACE_DEBUG_OBJ@
memcached_debug_CFLAGS = @PROFILER_FLAGS@
Expand Down
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ AC_SUBST(DTRACE_HEADER)
AC_SUBST(DTRACE_OBJ)
AC_SUBST(DTRACE_DEBUG_OBJ)
AC_SUBST(DTRACEFLAGS)
AC_SUBST(PROFILER_LDFLAGS)

if test "$GCC" = "yes"
then
AC_PATH_PROG([PROFILER], [gcov], "no", [$PATH])
if test "x$PROFILER" != "xno"; then
PROFILER_FLAGS="-fprofile-arcs -ftest-coverage"
PROFILER_LDFLAGS="-lgcov"
fi
else
AC_RUN_IFELSE(
Expand Down

0 comments on commit 2a381c8

Please sign in to comment.