diff --git a/compiler/systems/t_bsd.pas b/compiler/systems/t_bsd.pas index 911fcd0e08..bfe956971f 100644 --- a/compiler/systems/t_bsd.pas +++ b/compiler/systems/t_bsd.pas @@ -695,6 +695,11 @@ begin else DynLinKStr:=DynLinkStr+' -dynamic'; // one dash! end; + +{ Use -nopie on OpenBSD } + if (target_info.system in systems_openbsd) then + Info.ExtraOptions:=Info.ExtraOptions+' -nopie'; + { Write used files and libraries } WriteResponseFile(false);