Merge pull request #1814 from janvorli/fix-pthread

Fix pthread library option
This commit is contained in:
Jan Vorlicek 2016-03-12 01:46:05 +01:00
commit cef64895c8
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 =
{