diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2024-03-08 18:06:13 +0100 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2024-03-08 18:06:13 +0100 |
| commit | fc9d3ec5a7246a57bc2a5fc7ac92b4de729da9b8 (patch) | |
| tree | b1e08f3e793402becfd00e87a25b9fbb4bbe791e /src/linker.cpp | |
| parent | db03c86544ff4a4f5d7f54425d99965fd658208e (diff) | |
| parent | 51d12acab31c7f260d536366206b7211577f1088 (diff) | |
Merge branch 'master' of github.com:odin-lang/Odin
Diffstat (limited to 'src/linker.cpp')
| -rw-r--r-- | src/linker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/linker.cpp b/src/linker.cpp index 0144c4aaf..0cdeaf8d9 100644 --- a/src/linker.cpp +++ b/src/linker.cpp @@ -474,8 +474,8 @@ gb_internal i32 linker_stage(LinkerData *gen) { link_settings = gb_string_appendc(link_settings, "-Wl,-fini,'_odin_exit_point' "); } - } else if (build_context.metrics.os != TargetOs_openbsd) { - // OpenBSD defaults to PIE executable. do not pass -no-pie for it. + } else if (build_context.metrics.os != TargetOs_openbsd && build_context.metrics.os != TargetOs_haiku) { + // OpenBSD and Haiku default to PIE executable. do not pass -no-pie for it. link_settings = gb_string_appendc(link_settings, "-no-pie "); } |