summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDennis Schafroth <dennis@schafroth.dk>2015-01-12 21:24:40 +0100
committerDennis Schafroth <dennis@schafroth.dk>2015-01-12 21:24:40 +0100
commit107b498c764018b0f100b384d347ab9ea961ad82 (patch)
tree7a77de2479abc7d5b62df9494a9747b5ef4fde71
parent1bf3c03a20c7c673accb470f82c491daa9eaf9e5 (diff)
Do not include library gcov on DARWIN
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index a9326aa1a21..5eb0d05e274 100644
--- a/configure.ac
+++ b/configure.ac
@@ -344,7 +344,7 @@ PKG_CHECK_MODULES([UNITTEST], [cmockery2], [
UNITTEST_LIBS=`${PKG_CONFIG} --print-errors --libs-only-l "cmockery2"`
],[
AC_CHECK_LIB([cmockery], [mock_assert], [
- UNITTEST_LDFLAGS="-lcmockery -lgcov"
+ UNITTEST_LDFLAGS="-lcmockery $COVERAGE_LIB"
UNITTEST_CFLAGS="-Wall -Werror -DUNIT_TESTING=1"
], [
AC_MSG_ERROR([cmockery2 library is required to build glusterfs])
@@ -873,6 +873,7 @@ else
LOCALSTATEDIR=$(eval echo ${localstatedir})
fi
+COVERAGE_LIB="-lgcov"
case $host_os in
linux*)
GF_HOST_OS="GF_LINUX_HOST_OS"
@@ -940,6 +941,7 @@ case $host_os in
BUILD_FUSERMOUNT="no"
FUSERMOUNT_SUBDIR=""
GLUSTERD_WORKDIR="${LOCALSTATEDIR}/db/glusterd"
+ COVERAGE_LIB=""
;;
esac