Skip to content

Commit

Permalink
Don't pass -fPIC when building libraries.
Browse files Browse the repository at this point in the history
Zig will pick a sensible default for this flag based on the target and link
mode anyway.
  • Loading branch information
alexrp committed Nov 28, 2024
1 parent 4101314 commit 0e6cc61
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/sdk/ZigCompile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,6 @@ protected override string GenerateCommandLineCommands()

if (_outputType == ZigOutputType.Library)
{
builder.AppendSwitch("-fPIC");

if (!isZig)
{
builder.AppendSwitch("-shared");
Expand Down

0 comments on commit 0e6cc61

Please sign in to comment.