Browse Source

Fix ld.lld options for i386-freebsd target

Pierre Muller 5 months ago
parent
commit
665b019ef3
1 changed files with 4 additions and 1 deletions
  1. 4 1
      compiler/systems/t_bsd.pas

+ 4 - 1
compiler/systems/t_bsd.pas

@@ -468,7 +468,10 @@ begin
 
   if target_info.system=system_i386_freebsd then
     begin
-      targetstr:='-b elf32-i386-freebsd';
+      if cs_link_lld in current_settings.globalswitches then
+        targetstr:='-b elf'
+      else
+        targetstr:='-b elf32-i386-freebsd';
       emulstr:='-m elf_i386_fbsd';
     end
   else