diff options
| author | gingerBill <bill@gingerbill.org> | 2021-04-28 15:36:29 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-04-28 15:36:29 +0100 |
| commit | 375132252122e899b365859961a95fc8c1c06e63 (patch) | |
| tree | ebfa106678f1ce6e92b77410cb87ec6126bafb83 /src/main.cpp | |
| parent | 71ac145f49efa816f49b462df3ec38288a57d776 (diff) | |
Add `-no-pie` flag to linker on Linux
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 427653feb..117c4e549 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -409,6 +409,11 @@ i32 linker_stage(lbGenerator *gen) { #endif } + if (build_context.metrics.os == TargetOs_linux) { + link_settings = gb_string_appendc(link_settings, "-no-pie "); + } + + if (build_context.out_filepath.len > 0) { //NOTE(thebirk): We have a custom -out arguments, so we should use the extension from that isize pos = string_extension_position(build_context.out_filepath); |