Browse Source

Merge commit 48814:
------------------------------------------------------------------------
r48814 | pierre | 2021-02-26 17:15:30 +0000 (Fri, 26 Feb 2021) | 1 line

Do not add libgcc directory to library directories with -Fl option if -Xd option is used
------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@48854 -

pierre 4 years ago
parent
commit
855efcaad6
1 changed files with 3 additions and 1 deletions
  1. 3 1
      packages/fpmkunit/src/fpmkunit.pp

+ 3 - 1
packages/fpmkunit/src/fpmkunit.pp

@@ -6811,7 +6811,9 @@ begin
   FreeAndNil(L);
 
   // libc-linker path
-  if APackage.NeedLibC then
+  // Do not add it if -Xd option is used
+  if APackage.NeedLibC and
+     ((not Defaults.HaveOptions) or (Defaults.Options.IndexOf('-Xd')=-1)) then
     begin
       if FCachedlibcPath='' then
         begin