User forums > General (but related to Code::Blocks)

building rev 4122

<< < (2/2)

stahta01:
FYI:

Possible patch for issue, the problem started with SVN 4003

--- Code: ---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);
  }

--- End code ---

Biplab:

--- Quote from: stahta01 on June 21, 2007, 04:44:50 pm ---Possible patch for issue, the problem started with SVN 4003

--- End quote ---

Nice catch, Tim. :)

Update: Fix is in Rev 4144.

Navigation

[0] Message Index

[*] Previous page

Go to full version