Improve Haiku support

This commit is contained in:
avanspector
2024-02-25 02:24:52 +01:00
parent 824c831190
commit 88add0b6b1
6 changed files with 73 additions and 4 deletions
+2 -2
View File
@@ -2602,8 +2602,8 @@ gb_internal bool lb_generate_code(lbGenerator *gen) {
switch (build_context.reloc_mode) {
case RelocMode_Default:
if (build_context.metrics.os == TargetOs_openbsd) {
// Always use PIC for OpenBSD: it defaults to PIE
if (build_context.metrics.os == TargetOs_openbsd || build_context.metrics.os == TargetOs_haiku) {
// Always use PIC for OpenBSD and Haiku: they default to PIE
reloc_mode = LLVMRelocPIC;
}
break;