Skip to content

Commit

Permalink
Handle -(-)pie linker option.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Aug 7, 2024
1 parent 1b2d8a9 commit 9cd1e64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1981,6 +1981,8 @@ fn buildOutputType(
needed = false;
} else if (mem.eql(u8, linker_arg, "--no-as-needed") or mem.eql(u8, linker_arg, "-no-as-needed")) {
needed = true;
} else if (mem.eql(u8, linker_arg, "--pie") or mem.eql(u8, linker_arg, "-pie")) {
create_module.opts.pie = true;
} else if (mem.eql(u8, linker_arg, "--no-pie") or
mem.eql(u8, linker_arg, "-no-pie") or
mem.eql(u8, linker_arg, "-no_pie"))
Expand Down

0 comments on commit 9cd1e64

Please sign in to comment.