Commit d8cd4e60 authored by Austin Seipp's avatar Austin Seipp
Browse files

honggfuzz: install libraries, too



honggfuzz embeds its .a libraries *inside* of the hfuzz-cc executable,
extracts them when you invoke it, and links the .o file against them.
But that doesn't help if you wanted to bind it to other languages such
as Rust, for example. If you're using honggfuzz-rs, it embeds this
automatically too, but if you're doing it yourself, you need these
libraries to get anywhere.

Signed-off-by: default avatarAustin Seipp <aseipp@pobox.com>
parent 696c3346
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -35,6 +35,14 @@ stdenv.mkDerivation rec {

  makeFlags = [ "PREFIX=$(out)" ];

  postInstall = ''
    mkdir -p $out/lib
    cp libhfuzz/libhfuzz.a $out/lib
    cp libhfuzz/libhfuzz.so $out/lib
    cp libhfcommon/libhfcommon.a $out/lib
    cp libhfnetdriver/libhfnetdriver.a $out/lib
  '';

  meta = {
    description =
      "A security oriented, feedback-driven, evolutionary, easy-to-use fuzzer";