Browse Source

Do not try to link package libraries on systems that rely on the generated import library (namely PE/COFF systems).

pkgutil.pas, add_package_libs:
  * don't add anything if target system is part of systems_packages_need_exports

git-svn-id: branches/svenbarth/packages@31994 -
svenbarth 9 years ago
parent
commit
55f9ff8b1f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      compiler/pkgutil.pas

+ 2 - 0
compiler/pkgutil.pas

@@ -464,6 +464,8 @@ implementation
       i : longint;
       pkgname : tpathstr;
     begin
+      if target_info.system in systems_packages_need_exports then
+        exit;
       for i:=0 to packagelist.count-1 do
         begin
           pkgentry:=ppackageentry(packagelist[i]);