mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-01 02:42:09 +00:00
Revert further simplifiction
This commit is contained in:
@@ -607,7 +607,7 @@ gb_internal i32 linker_stage(LinkerData *gen) {
|
||||
|
||||
}
|
||||
|
||||
if (build_context.build_mode == BuildMode_Executable) {
|
||||
if (build_context.build_mode == BuildMode_Executable && build_context.reloc_mode == RelocMode_PIC) {
|
||||
// Do not disable PIE, let the linker choose. (most likely you want it enabled)
|
||||
} else if (build_context.build_mode != BuildMode_DynamicLibrary) {
|
||||
if (build_context.metrics.os != TargetOs_openbsd
|
||||
|
||||
Reference in New Issue
Block a user