mirror of
https://github.com/ziglang/zig.git
synced 2025-12-27 08:33:15 +00:00
linux: only export getauxval if not linking libc
This commit is contained in:
parent
fba81cd606
commit
fb0cef8522
@ -167,7 +167,9 @@ fn getauxvalImpl(index: usize) callconv(.C) usize {
|
||||
return 0;
|
||||
}
|
||||
comptime {
|
||||
@export(getauxvalImpl, .{ .name = "getauxval", .linkage = .Weak });
|
||||
if (!builtin.link_libc) {
|
||||
@export(getauxvalImpl, .{ .name = "getauxval", .linkage = .Weak });
|
||||
}
|
||||
}
|
||||
|
||||
// Some architectures (and some syscalls) require 64bit parameters to be passed
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user