Explorar o código

* always add -nopie to linker flags on OpenBSD. Based on 2/3 of OpenBSD ports
patch patch-fpcsrc_compiler_systems_t_bsd_pas

git-svn-id: trunk@41638 -

nickysn %!s(int64=6) %!d(string=hai) anos
pai
achega
bd9f6170cd
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      compiler/systems/t_bsd.pas

+ 1 - 2
compiler/systems/t_bsd.pas

@@ -800,8 +800,7 @@ begin
    end;
 
 { Use -nopie on OpenBSD }
-  if (target_info.system in systems_openbsd) and
-     (target_info.system <> system_x86_64_openbsd) then
+  if (target_info.system in systems_openbsd) then
     Info.ExtraOptions:=Info.ExtraOptions+' -nopie';
 
 { -N seems to be needed on NetBSD/earm }