winebuild: Also optimize out imports that are only used for forwards.

This commit is contained in:
Alexandre Julliard 2007-12-06 21:44:45 +01:00
parent 0861141725
commit 195356c098
1 changed files with 3 additions and 2 deletions

View File

@ -617,9 +617,10 @@ int resolve_imports( DLLSPEC *spec )
}
}
}
if (!removed && check_unused( imp, spec ))
if (!removed)
{
/* the dll is not used, get rid of it */
if (check_unused( imp, spec ))
warning( "winebuild: %s imported but no symbols used\n", imp->spec->file_name );
remove_import_dll( i );
i--;