summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsvenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2>2015-12-04 17:00:47 +0000
committersvenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2>2015-12-04 17:00:47 +0000
commit3becdaa0f4f676ebbd8394e3dfed19618b6823a6 (patch)
tree6da8d168ae10f27b7877eb2e8c905992b09a7661
parentb30ca834652daa9d2195773c5c8c80161820b12b (diff)
downloadfpc-3becdaa0f4f676ebbd8394e3dfed19618b6823a6.tar.gz
pkgutil.pas, createimportlibfromexternals:
* import_proc_symbol: at least import the mangled name if there is no alias available git-svn-id: http://svn.freepascal.org/svn/fpc/branches/svenbarth@32583 3ad0048d-3df7-0310-abae-a5850022a9f2
-rw-r--r--packages/compiler/pkgutil.pas3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/compiler/pkgutil.pas b/packages/compiler/pkgutil.pas
index 05a997b207..94dd955010 100644
--- a/packages/compiler/pkgutil.pas
+++ b/packages/compiler/pkgutil.pas
@@ -688,6 +688,9 @@ implementation
item : TCmdStrListItem;
begin
item := TCmdStrListItem(pd.aliasnames.first);
+ if not assigned(item) then
+ { at least import the mangled name }
+ current_module.addexternalimport(pkg.pplfilename,pd.mangledname,pd.mangledname,0,false,false);
while assigned(item) do
begin
current_module.addexternalimport(pkg.pplfilename,item.str,item.str,0,false,false);