use-bfd-explicitly
authorPascal Packaging Team <pkg-pascal-devel@lists.alioth.debian.org>
Mon, 22 Jan 2018 09:28:53 +0000 (09:28 +0000)
committerAbou Al Montacir <abou.almontacir@sfr.fr>
Mon, 22 Jan 2018 09:28:53 +0000 (09:28 +0000)
Gbp-Pq: Name use-bfd-explicitly.diff

fpcsrc/compiler/systems/t_linux.pas

index 0b84f61f07960e51caa70da60207f27aed7eca01..cdfcac06ce680e0e8bc6731d0dd6b913f595b4eb 100644 (file)
@@ -1097,7 +1097,7 @@ begin
   if HasExports then
     cmdstr:=cmdstr+' -E';
 
-  success:=DoExec(FindUtil(utilsprefix+BinStr),CmdStr,true,false);
+  success:=DoExec(FindUtil(utilsprefix+BinStr)+'.bfd',CmdStr,true,false);
 
   { Create external .dbg file with debuginfo }
   if success and (cs_link_separate_dbg_file in current_settings.globalswitches) then
@@ -1152,7 +1152,7 @@ begin
   Replace(cmdstr,'$INIT',InitStr);
   Replace(cmdstr,'$FINI',FiniStr);
   Replace(cmdstr,'$SONAME',SoNameStr);
-  success:=DoExec(FindUtil(utilsprefix+binstr),cmdstr,true,false);
+  success:=DoExec(FindUtil(utilsprefix+binstr)+'.bfd',cmdstr,true,false);
 
 { Strip the library ? }
   if success and (cs_link_strip in current_settings.globalswitches) then