瀏覽代碼

* OpenBSD gets no pie. (add -nopie)

git-svn-id: trunk@28736 -
marco 10 年之前
父節點
當前提交
ff2186ce00
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      compiler/systems/t_bsd.pas

+ 5 - 0
compiler/systems/t_bsd.pas

@@ -695,6 +695,11 @@ begin
     else
     else
      DynLinKStr:=DynLinkStr+' -dynamic'; // one dash!
      DynLinKStr:=DynLinkStr+' -dynamic'; // one dash!
    end;
    end;
+   
+{ Use -nopie on OpenBSD }
+  if (target_info.system in systems_openbsd) then
+    Info.ExtraOptions:=Info.ExtraOptions+' -nopie';
+    
 { Write used files and libraries }
 { Write used files and libraries }
   WriteResponseFile(false);
   WriteResponseFile(false);