From 665b019ef3b1f43c4bef68237a604e2af1487317 Mon Sep 17 00:00:00 2001 From: Pierre Muller Date: Sat, 22 Feb 2025 14:22:16 +0100 Subject: [PATCH] Fix ld.lld options for i386-freebsd target --- compiler/systems/t_bsd.pas | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler/systems/t_bsd.pas b/compiler/systems/t_bsd.pas index 9f50285106..9a4cffb882 100644 --- a/compiler/systems/t_bsd.pas +++ b/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