summaryrefslogtreecommitdiff
path: root/make_gcov.sh
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-12-05 16:31:51 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:06:10 -0700
commite608ba5d457c8876da58e3877da21d014d4868e0 (patch)
tree5672d01159da81b331e3dd22da5b79712a7a964a /make_gcov.sh
parent8e2bf855bddfb8df2b61ad78cb082b7bf2af317e (diff)
[PATCH] make gcov compile scripts working with recent gcc
Diffstat (limited to 'make_gcov.sh')
-rw-r--r--make_gcov.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/make_gcov.sh b/make_gcov.sh
index 907c1ebd48..4d5f63f1dd 100644
--- a/make_gcov.sh
+++ b/make_gcov.sh
@@ -16,16 +16,16 @@
# clean up udev dir
clean_udev () {
- find -name "*.da" -exec rm -f "{}" \;
- find -name "*.bb" -exec rm -f "{}" \;
- find -name "*.bbg" -exec rm -f "{}" \;
+ find -name "*.gcno" -exec rm -f "{}" \;
+ find -name "*.gcda" -exec rm -f "{}" \;
find -name "*.gcov" -exec rm -f "{}" \;
+ rm -f udev_gcov.txt
make clean
}
PWD=`pwd`
GCCINCDIR=`gcc -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp"`
-LIBSYSFS="-I$PWD/libsysfs"
+LIBSYSFS="-I$PWD/libsysfs/sysfs -I$PWD/libsysfs"
WARNINGS="-Wall -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
GCC="-I$GCCINCDIR"
USE_LOG="-DLOG"
@@ -50,4 +50,4 @@ done
clean_udev
-make $* CFLAGS="$WARNINGS $GCOV_FLAGS $USE_LOG $DEBUG $GCC $LIBSYSFS"
+make $* CFLAGS="$WARNINGS $GCOV_FLAGS $USE_LOG $DEBUG $GCC $LIBSYSFS" LDFLAGS="-Wl,-warn-common -fprofile-arcs"