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

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