Merge pull request #1814 from janvorli/fix-pthread
Fix pthread library option
This commit is contained in:
commit
cef64895c8
3 changed files with 3 additions and 3 deletions
|
@ -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; }
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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 =
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue