diff --git a/reactos/tools/rbuild/backend/codeblocks/codeblocks.cpp b/reactos/tools/rbuild/backend/codeblocks/codeblocks.cpp
index 6b9065a25e0..ec65f83be46 100644
--- a/reactos/tools/rbuild/backend/codeblocks/codeblocks.cpp
+++ b/reactos/tools/rbuild/backend/codeblocks/codeblocks.cpp
@@ -496,13 +496,13 @@ CBBackend::_generate_cbproj ( const Module& module )
else if ( dll )
fprintf ( OUT, "\t\t\t\t\r\n" );
else if ( sys )
- fprintf ( OUT, "\t\t\t\t\r\n" );
+ fprintf ( OUT, "\t\t\t\t\r\n" );
else if ( exe )
{
if ( module.type == Kernel )
- fprintf ( OUT, "\t\t\t\t\r\n" );
+ fprintf ( OUT, "\t\t\t\t\r\n" );
else if ( module.type == NativeCUI )
- fprintf ( OUT, "\t\t\t\t\r\n" );
+ fprintf ( OUT, "\t\t\t\t\r\n" );
else if ( module.type == Win32CUI || module.type == Win32GUI || module.type == Win32SCR)
{
if ( console )
@@ -515,11 +515,7 @@ CBBackend::_generate_cbproj ( const Module& module )
fprintf ( OUT, "\t\t\t\t\r\n" );
if ( module_type == ".cpl" )
{
- if ( configuration.UseConfigurationInPath )
- fprintf ( OUT, "\t\t\t\t\r\n", outdir.c_str (), module.GetBasePath ().c_str (), cfg.name.c_str(), module.name.c_str(), module_type.c_str() );
- else
- fprintf ( OUT, "\t\t\t\t\r\n", outdir.c_str (), module.GetBasePath ().c_str (), module.name.c_str(), module_type.c_str() );
-
+ fprintf ( OUT, "\t\t\t\t\r\n" );
fprintf ( OUT, "\t\t\t\t\r\n" );
}
fprintf ( OUT, "\t\t\t\t\r\n" );
@@ -612,20 +608,25 @@ CBBackend::_generate_cbproj ( const Module& module )
}
fprintf ( OUT, "\t\t\t\t\r\n" );
+ fprintf ( OUT, "\t\t\t\t\r\n" );
+
+ if ( module.type == StaticLibrary && module.importLibrary )
+ fprintf ( OUT, "\t\t\t\t\t\r\n", module.importLibrary->dllname.c_str (), module.importLibrary->definition.c_str(), module.mangledSymbols ? "" : "--kill-at" );
+
if ( dll )
{
- fprintf ( OUT, "\t\t\t\t\r\n" );
- fprintf ( OUT, "\t\t\t\t\t\r\n", module.name.c_str(), module_type.c_str(), module.importLibrary->definition.c_str(), module.name.c_str() );
+
+ fprintf ( OUT, "\t\t\t\t\t\r\n", module.importLibrary->dllname.c_str (), module.importLibrary->definition.c_str(), module.name.c_str(), module.mangledSymbols ? "" : "--kill-at" );
#ifdef WIN32
fprintf ( OUT, "\t\t\t\t\t\r\n", module.name.c_str() );
#else
fprintf ( OUT, "\t\t\t\t\t\r\n", module.name.c_str() );
#endif
fprintf ( OUT, "\t\t\t\t\t\r\n" );
-
- fprintf ( OUT, "\t\t\t\t\r\n" );
}
+ fprintf ( OUT, "\t\t\t\t\r\n" );
+
fprintf ( OUT, "\t\t\t\r\n" );
}