Skip to content

Commit fd7ba2b

Browse files
committed
small change to build script
1 parent 0a750c0 commit fd7ba2b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

afl-cov-build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
test -z "$1" -o "$1" = "-h" && {
44
echo "Syntax: $0 <command> [options]"
55
echo Sets build options for coverage instrumentation with gcov/lcov.
6+
echo Set CC/CXX environment variables if you do not want gcc/g++.
67
echo Example: "$0 ./configure --disable-shared"
78
}
89

910
test -z "$CC" && export CC=gcc
1011
test -z "$CXX" && export CXX=g++
1112
export CFLAGS="-fprofile-arcs -ftest-coverage"
1213
export CXXFLAGS="$CFLAGS"
14+
export CPPFLAGS="$CFLAGS"
1315
export LDFLAGS="-lgcov --coverage"
1416

1517
$*

0 commit comments

Comments
 (0)