From: Mark Adler Date: Sat, 4 Feb 2012 06:56:16 +0000 (-0800) Subject: Use name in GCC_CLASSIC as C compiler for coverage testing, if set. X-Git-Tag: v1.2.6.1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2dadd2fab4bc4806b4781b4b7b39728e76b7a9cc;p=thirdparty%2Fzlib-ng.git Use name in GCC_CLASSIC as C compiler for coverage testing, if set. Apple removed support for gcov in the default gcc compiler chain, when they moved to llvm. This can be circumvented in XCode 4.2 by using the gcc chain with gcc-4.2. This patch allows setting GCC_CLASSIC to the name of a real gcc executable (e.g. "gcc-4.2") to allow coverage testing. --- diff --git a/configure b/configure index 780317ce4..060acb724 100755 --- a/configure +++ b/configure @@ -416,6 +416,9 @@ fi if test $cover -eq 1; then CFLAGS="${CFLAGS} -fprofile-arcs -ftest-coverage" + if test -n "$GCC_CLASSIC"; then + CC=$GCC_CLASSIC + fi fi echo >> configure.log