Fix pthread library option

While building CoreRT on OSX, I have noticed a warning:
clang: warning: argument unused during compilation: `-pthread`
The issue is that the options should be `-lpthread` instead.
This commit is contained in:
Jan Vorlicek 2016-03-11 12:24:36 +01:00
parent dc3c00d660
commit 72ad7aa4db
3 changed files with 3 additions and 3 deletions

View file

@ -12,7 +12,7 @@ namespace Microsoft.DotNet.Tools.Compiler.Native
// TODO: debug/release support
private readonly string [] _cLibsFlags = { "-lm", "-ldl"};
private readonly string [] _cflags = { "-g", "-lstdc++", "-lrt", "-Wno-invalid-offsetof", "-pthread"};
private readonly string [] _cflags = { "-g", "-lstdc++", "-lrt", "-Wno-invalid-offsetof", "-lpthread"};
public IEnumerable<string> CompilerArgs { get; set; }

View file

@ -16,7 +16,7 @@ namespace Microsoft.DotNet.Tools.Compiler.Native
public const string InputExtension = ".cpp";
// TODO: debug/release support
private readonly string [] _cflags = { "-g", "-lstdc++", "-Wno-invalid-offsetof", "-pthread"};
private readonly string [] _cflags = { "-g", "-lstdc++", "-Wno-invalid-offsetof", "-lpthread"};
// Link to iconv APIs
private const string LibFlags = "-liconv";

View file

@ -15,7 +15,7 @@ namespace Microsoft.DotNet.Tools.Compiler.Native
private IEnumerable<string> CompilerArgs;
// TODO: debug/release support
private readonly string [] _cflags = { "-g", "-lstdc++", "-Wno-invalid-offsetof", "-pthread", "-ldl", "-lm", "-liconv" };
private readonly string [] _cflags = { "-g", "-lstdc++", "-Wno-invalid-offsetof", "-lpthread", "-ldl", "-lm", "-liconv" };
private readonly string[] _ilcSdkLibs =
{