diff --git a/compiler/pmodules.pas b/compiler/pmodules.pas index e7cfbb9159..1330de3b82 100644 --- a/compiler/pmodules.pas +++ b/compiler/pmodules.pas @@ -1497,9 +1497,7 @@ implementation if current_module.uses_imports then importlib.generatelib; - if islibrary or - (target_info.system in [system_i386_WIN32,system_i386_wdosx]) or - (target_info.system=system_i386_NETWARE) then + if islibrary or (target_info.system in system_unit_program_exports) then exportlib.generatelib; { insert Tables and StackLength }