Skip to content

Commit

Permalink
fix: link libc to object files
Browse files Browse the repository at this point in the history
  • Loading branch information
tensorush committed Jul 21, 2024
1 parent 4fcbff0 commit 1c9ae73
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ pub fn build(b: *std.Build) void {
.flags = flags.constSlice(),
});
performance_obj.addIncludePath(AFLplusplus_inc_path);
performance_obj.linkLibC();

const forkserver_obj = b.addObject(.{
.name = "afl-forkserver",
Expand All @@ -56,6 +57,7 @@ pub fn build(b: *std.Build) void {
.flags = flags.constSlice(),
});
forkserver_obj.addIncludePath(AFLplusplus_inc_path);
forkserver_obj.linkLibC();

const sharedmem_obj = b.addObject(.{
.name = "afl-sharedmem",
Expand All @@ -68,6 +70,7 @@ pub fn build(b: *std.Build) void {
.flags = flags.constSlice(),
});
sharedmem_obj.addIncludePath(AFLplusplus_inc_path);
sharedmem_obj.linkLibC();

const common_obj = b.addObject(.{
.name = "afl-common",
Expand All @@ -80,6 +83,7 @@ pub fn build(b: *std.Build) void {
.flags = flags.constSlice(),
});
common_obj.addIncludePath(AFLplusplus_inc_path);
common_obj.linkLibC();

// Executable suite
const exes_step = b.step("exes", "Install executable suite");
Expand Down

0 comments on commit 1c9ae73

Please sign in to comment.