diff --git a/reactos/dll/nls/normaliz_redist/normaliz_redist.rbuild b/reactos/dll/nls/normaliz_redist/normaliz_redist.rbuild
index 729f79f48da..f25c82280f2 100644
--- a/reactos/dll/nls/normaliz_redist/normaliz_redist.rbuild
+++ b/reactos/dll/nls/normaliz_redist/normaliz_redist.rbuild
@@ -7,7 +7,6 @@
normalize
idna
- icu4ros
normaliz_redist_data
libcntpr
kernel32
diff --git a/reactos/dll/win32/kernel32/kernel32.rbuild b/reactos/dll/win32/kernel32/kernel32.rbuild
index 3217f2d9028..906b3163c76 100644
--- a/reactos/dll/win32/kernel32/kernel32.rbuild
+++ b/reactos/dll/win32/kernel32/kernel32.rbuild
@@ -120,6 +120,8 @@
+
+ normalize
@@ -134,9 +136,6 @@
kernel32.rc
- normalize
- icu4ros
-
ntdll
diff --git a/reactos/tools/rbuild/backend/mingw/modulehandler.cpp b/reactos/tools/rbuild/backend/mingw/modulehandler.cpp
index 0f98bf0a27a..a444c18151e 100644
--- a/reactos/tools/rbuild/backend/mingw/modulehandler.cpp
+++ b/reactos/tools/rbuild/backend/mingw/modulehandler.cpp
@@ -347,6 +347,18 @@ MingwModuleHandler::GetImportLibraryDependency (
dep = backend->GetFullName ( *library_target );
delete library_target;
}
+
+ if ( IsStaticLibrary ( importedModule ) || importedModule.type == ObjectLibrary )
+ {
+ const std::vector& libraries = importedModule.non_if_data.libraries;
+
+ for ( size_t i = 0; i < libraries.size (); ++ i )
+ {
+ dep += " ";
+ dep += GetImportLibraryDependency ( *libraries[i]->importedModule );
+ }
+ }
+
return dep;
}
@@ -2891,7 +2903,6 @@ MingwBootLoaderModuleHandler::GenerateBootLoaderModuleTarget ()
CLEAN_FILE ( junk_tmp );
string objectsMacro = GetObjectsMacro ( module );
string linkDepsMacro = GetLinkingDependenciesMacro ();
- string libsMacro = GetLibsMacro ();
GenerateRules ();
@@ -2968,7 +2979,6 @@ MingwBootProgramModuleHandler::GenerateBootProgramModuleTarget ()
CLEAN_FILE ( junk_cpy );
string objectsMacro = GetObjectsMacro ( module );
string linkDepsMacro = GetLinkingDependenciesMacro ();
- string libsMacro = GetLibsMacro ();
const Module *payload = module.project.LocateModule ( module.payload );
GenerateRules ();