Browse Source

arm-netbsd: append -N to the command line. lets figure out later if this is the right solution here

git-svn-id: trunk@38590 -
Károly Balogh 7 years ago
parent
commit
626dc172ee
1 changed files with 6 additions and 2 deletions
  1. 6 2
      compiler/systems/t_bsd.pas

+ 6 - 2
compiler/systems/t_bsd.pas

@@ -796,12 +796,16 @@ begin
     else
      DynLinKStr:=DynLinkStr+' -dynamic'; // one dash!
    end;
-   
+
 { Use -nopie on OpenBSD }
   if (target_info.system in systems_openbsd) and
      (target_info.system <> system_x86_64_openbsd) then
     Info.ExtraOptions:=Info.ExtraOptions+' -nopie';
-    
+
+{ -N seems to be needed on NetBSD/earm }
+  if (target_info.system in [system_arm_netbsd]) then
+    Info.ExtraOptions:=Info.ExtraOptions+' -N';
+
 { Write used files and libraries }
   WriteResponseFile(false);