zig std lib doesnt work with dynamic linking on linux?
This commit is contained in:
parent
a0f057798e
commit
df0248ec7b
|
|
@ -9,6 +9,7 @@ pub fn build(b: *std.Build) void {
|
||||||
.root_module = b.createModule(.{
|
.root_module = b.createModule(.{
|
||||||
.root_source_file = b.path("lib.zig"),
|
.root_source_file = b.path("lib.zig"),
|
||||||
.target = target,
|
.target = target,
|
||||||
|
.link_libc = true,
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
}),
|
}),
|
||||||
.linkage = .dynamic,
|
.linkage = .dynamic,
|
||||||
|
|
@ -20,6 +21,7 @@ pub fn build(b: *std.Build) void {
|
||||||
.name = "repro",
|
.name = "repro",
|
||||||
.root_module = b.createModule(.{
|
.root_module = b.createModule(.{
|
||||||
.root_source_file = b.path("main.zig"),
|
.root_source_file = b.path("main.zig"),
|
||||||
|
.link_libc = true,
|
||||||
.target = target,
|
.target = target,
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue