use-bfd-explicitly
authorCarlos Laviola <claviola@debian.org>
Mon, 13 Oct 2014 19:16:54 +0000 (19:16 +0000)
committerPaul Gevers <elbrus@debian.org>
Mon, 13 Oct 2014 19:16:54 +0000 (19:16 +0000)
Gbp-Pq: Name use-bfd-explicitly.diff

fpcsrc/compiler/systems/t_linux.pas

index cc67afa8073c6445f7e1129a0ddcedf6fb07c913..80755674af81023e702abeaa7cec3be35c0d8f3b 100644 (file)
@@ -1032,7 +1032,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
@@ -1087,7 +1087,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