stage2: only pass -lm -lc -ldl for android libc
The other libc components are not available on android.
This commit is contained in:
committed by
Andrew Kelley
parent
742d588b3a
commit
b2126d3345
@@ -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",
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user