From: Fangrui Song Date: Fri, 7 Feb 2020 23:46:29 +0000 (-0800) Subject: closes bpo-39575: Change -lgcov to --coverage. (GH-18382) X-Git-Tag: v3.9.0a4~98 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9a978ddb93bf5eaa519916d9a40c4fa4edf5d854;p=thirdparty%2FPython%2Fcpython.git closes bpo-39575: Change -lgcov to --coverage. (GH-18382) This allows clang to get rid of the dependency on libgcov. When linking, GCC passes -lgcov while clang passes the path to libclang_rt.profile-$arch.a --- diff --git a/Makefile.pre.in b/Makefile.pre.in index 510f227ed4df..3da104bac87d 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -513,7 +513,7 @@ profile-opt: profile-run-stamp coverage: @echo "Building with support for coverage checking:" $(MAKE) clean - $(MAKE) @DEF_MAKE_RULE@ CFLAGS="$(CFLAGS) -O0 -pg -fprofile-arcs -ftest-coverage" LIBS="$(LIBS) -lgcov" + $(MAKE) @DEF_MAKE_RULE@ CFLAGS="$(CFLAGS) -O0 -pg --coverage" LIBS="$(LIBS) --coverage" coverage-lcov: @echo "Creating Coverage HTML report with LCOV:"