Skip to content

Commit

Permalink
Forgot to export AFL_CC and AFL_CXX.
Browse files Browse the repository at this point in the history
  • Loading branch information
d33tah committed Sep 17, 2015
1 parent 0150c2b commit cfcb098
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup-afl_cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# Make sure afl-gcc will be run. This forces us to set AFL_CC and AFL_CXX or
# otherwise afl-gcc will be trying to call itself by calling gcc.

echo "AFL_CC=`readlink $( readlink /etc/alternatives/cc) `" >> /etc/profile.d/afl-sh-profile
echo "AFL_CXX=`readlink $( readlink /etc/alternatives/c++) `" >> /etc/profile.d/afl-sh-profile
echo "export AFL_CC=`readlink $( readlink /etc/alternatives/cc) `" >> /etc/profile.d/afl-sh-profile
echo "export AFL_CXX=`readlink $( readlink /etc/alternatives/c++) `" >> /etc/profile.d/afl-sh-profile

rm /usr/bin/cc && cp /usr/bin/afl-gcc /usr/bin/cc
rm /usr/bin/gcc && cp /usr/bin/afl-gcc /usr/bin/gcc
Expand Down

0 comments on commit cfcb098

Please sign in to comment.