stage2: only pass -lm -lc -ldl for android libc

The other libc components are not available on android.
This commit is contained in:
Isaac Freund
2021-05-21 14:07:47 +02:00
committed by Andrew Kelley
parent 742d588b3a
commit b2126d3345

View File

@@ -387,13 +387,20 @@ pub fn libcFullLinkFlags(target: std.Target) []const []const u8 {
"-lc",
"-lutil",
},
else => &[_][]const u8{
"-lm",
"-lpthread",
"-lc",
"-ldl",
"-lrt",
"-lutil",
else => switch (target.abi) {
.android => &[_][]const u8{
"-lm",
"-lc",
"-ldl",
},
else => &[_][]const u8{
"-lm",
"-lpthread",
"-lc",
"-ldl",
"-lrt",
"-lutil",
},
},
};
}