瀏覽代碼

* 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 年之前
父節點
當前提交
bd9f6170cd
共有 1 個文件被更改,包括 1 次插入2 次删除
  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 }