Browse Source

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

git-svn-id: trunk@48814 -
pierre 4 years ago
parent
commit
f767a4ac09
1 changed files with 3 additions and 2 deletions
  1. 3 2
      packages/fpmkunit/src/fpmkunit.pp

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

@@ -7176,8 +7176,9 @@ begin
 
   // libc-linker path (always for Linux, since required for LLVM and SEH; this does not
   // force the linking of anything by itself, but just adds a search directory)
-  if APackage.NeedLibC or
-     (Defaults.OS=linux) then
+  // Do not add it if -Xd option is used
+  if (APackage.NeedLibC or (Defaults.OS=linux)) and
+     ((not Defaults.HaveOptions) or (Defaults.Options.IndexOf('-Xd')=-1)) then
     begin
       if FCachedlibcPath='' then
         begin