mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Revert further simplifiction
This commit is contained in:
+1
-1
@@ -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)
|
// Do not disable PIE, let the linker choose. (most likely you want it enabled)
|
||||||
} else if (build_context.build_mode != BuildMode_DynamicLibrary) {
|
} else if (build_context.build_mode != BuildMode_DynamicLibrary) {
|
||||||
if (build_context.metrics.os != TargetOs_openbsd
|
if (build_context.metrics.os != TargetOs_openbsd
|
||||||
|
|||||||
Reference in New Issue
Block a user