Browse Source

* 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 6 years ago
parent
commit
bd9f6170cd
1 changed files with 1 additions and 2 deletions
  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 }