瀏覽代碼

Use pic code by default for x86_64-openbsd

git-svn-id: trunk@29138 -
pierre 10 年之前
父節點
當前提交
016666c70f
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 1 1
      compiler/systems/i_bsd.pas
  2. 2 1
      compiler/systems/t_bsd.pas

+ 1 - 1
compiler/systems/i_bsd.pas

@@ -319,7 +319,7 @@ unit i_bsd;
             shortname    : 'OpenBSD';
             flags        : [tf_needs_symbol_size,tf_needs_dwarf_cfi,tf_library_needs_pic,tf_needs_symbol_type,
                             tf_files_case_sensitive,tf_smartlink_library, tf_under_development,
-                            tf_dwarf_only_local_labels,
+                            tf_dwarf_only_local_labels, tf_pic_default,
                             { tf_pic_uses_got,}tf_smartlink_sections,tf_has_winlike_resources];
             cpu          : cpu_x86_64;
             unit_env     : 'BSDUNITS';

+ 2 - 1
compiler/systems/t_bsd.pas

@@ -697,7 +697,8 @@ begin
    end;
    
 { Use -nopie on OpenBSD }
-  if (target_info.system in systems_openbsd) then
+  if (target_info.system in systems_openbsd) and
+     (target_info.system <> system_x86_64_openbsd) then
     Info.ExtraOptions:=Info.ExtraOptions+' -nopie';
     
 { Write used files and libraries }