forked from mirrors/nixpkgs
afl: fix build, by switch to gcc as compiler
Apparently they set CFLAGS incompatible with clang. Also only provide a default value for AFL_CC/AFL_CXX for afl-clang-fast: User might want to overriding, but this is not a PATH variable that can be prepended with :.
This commit is contained in:
parent
2aeafe7ef4
commit
0565e1e732
|
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
# Note: libcgroup isn't needed for building, just for the afl-cgroup
|
||||
# script.
|
||||
buildInputs = [ makeWrapper clang llvm which ];
|
||||
buildInputs = [ makeWrapper llvm which ];
|
||||
|
||||
buildPhase = ''
|
||||
make PREFIX=$out
|
||||
|
@ -53,8 +53,7 @@ stdenv.mkDerivation rec {
|
|||
for x in $out/bin/afl-clang-fast $out/bin/afl-clang-fast++; do
|
||||
wrapProgram $x \
|
||||
--prefix AFL_PATH : "$out/lib/afl" \
|
||||
--prefix AFL_CC : "${clang}/bin/clang" \
|
||||
--prefix AFL_CXX : "${clang}/bin/clang++"
|
||||
--run 'export AFL_CC=''${AFL_CC:-${clang}/bin/clang} AFL_CXX=''${AFL_CXX:-${clang}/bin/clang++}'
|
||||
done
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue