Hi All,
Great IDE!!
I have noticed that after svn 3975 that:
Projects->Properties->Build Targets
Type = Dynamic Library and create Import Library ticked
does not create/build a libApplicationName.a.
it create/build ApplicationName.dll only.
using Windows XP SP2, MingW 3.4.2, svn 4097
TIA,
gvv
After retesting it appears the issue exists on SVN 4099, going to test an old SVN and see if it's not there.
SVN 3975 works right.
SVN 3977 works right.
SVN 3988 works right.
SVN 3995 works right.
SVN 4000 works right.
SVN 4002 works right.
SVN 4003 does not work.
SVN 4005 does not work.
SVN 4010 does not work.
SVN 4051 does not work.
Problem appears to be fname is codeblocks.dll for example for DLL target when it needs to be codeblocks.a
I think the below patch fixes the issue, but it needs much more testing.
Tim S
Index: src/sdk/compilercommandgenerator.cpp
===================================================================
--- src/sdk/compilercommandgenerator.cpp (revision 4101)
+++ src/sdk/compilercommandgenerator.cpp (working copy)
@@ -421,14 +421,14 @@
TargetFilenameGenerationPolicy PrefixPolicy;
TargetFilenameGenerationPolicy ExtensionPolicy;
target->GetTargetFilenameGenerationPolicy(PrefixPolicy, ExtensionPolicy);
- if(PrefixPolicy == tgfpPlatformDefault)
+ if((PrefixPolicy == tgfpPlatformDefault) || (target->GetTargetType() == ttDynamicLib))
{
if (!fname.GetName().StartsWith(compiler->GetSwitches().libPrefix))
{
fname.SetName(compiler->GetSwitches().libPrefix + fname.GetName());
}
}
- if(ExtensionPolicy == tgfpPlatformDefault)
+ if((ExtensionPolicy == tgfpPlatformDefault) || (target->GetTargetType() == ttDynamicLib))
{
fname.SetExt(compiler->GetSwitches().libExtension);
}