summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorReinhard Tartler <siretart@tauware.de>2013-03-23 08:17:24 +0100
committerReinhard Tartler <siretart@tauware.de>2013-04-05 18:55:11 +0200
commita862c7d3368241e72a465ab944afa38ea62a6640 (patch)
tree8e1ef0f68082a2f27b56858e57e7bc4a9c3ce91b /configure
parent52cd84d4d4e335daf26eb8c8b60c2578b3341b91 (diff)
Integrate lcov/gcov into Libav
The gcov/lcov are a common toolchain for visualizing code coverage with the GNU/Toolchain. The documentation and implementation of this integration was heavily inspired from the blog entry by Mike Melanson: http://multimedia.cx/eggs/using-lcov-with-ffmpeg/
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index 10246e527f..8c07d0af31 100755
--- a/configure
+++ b/configure
@@ -2173,6 +2173,10 @@ case "$toolchain" in
ar_default="lib"
target_os_default="win32"
;;
+ gcov)
+ add_cflags -fprofile-arcs -ftest-coverage
+ add_ldflags -fprofile-arcs -ftest-coverage
+ ;;
?*)
die "Unknown toolchain $toolchain"
;;