Skip to content

Commit 1c9ae73

Browse files
committed
fix: link libc to object files
1 parent 4fcbff0 commit 1c9ae73

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.zig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ pub fn build(b: *std.Build) void {
4444
.flags = flags.constSlice(),
4545
});
4646
performance_obj.addIncludePath(AFLplusplus_inc_path);
47+
performance_obj.linkLibC();
4748

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

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

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

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

0 commit comments

Comments
 (0)