MantisBT - CMake
View Issue Details
0006192CMakeCCMakepublic2007-12-21 03:412007-12-28 15:00
Felix 
Brad King 
normalminoralways
closedfixed 
 
 
0006192: mingw32-make complains about too long linker; cmd.exe doesn't support longer lines that 2048 chars
On win32 systems linking failed cause the command line passed to cmd.exe is too long and exceeds cmd.exes poor maximum length. The reason is that the line get's too long cause a huge amount of object files.

The link script feature of CMake for linking static libs with lots of objects isn't yet adopted to the linking process of binaries.

CMake Version: 2.4.7
Mingw Version: 5.1.3
Workarround:

Link almost all objects into a static lib and link that lib againt the remaining objs.
No tags attached.
Issue History
2007-12-21 03:41FelixNew Issue
2007-12-21 08:26Bill HoffmanStatusnew => assigned
2007-12-21 08:26Bill HoffmanAssigned To => Brad King
2007-12-28 15:00Brad KingStatusassigned => closed
2007-12-28 15:00Brad KingNote Added: 0010030
2007-12-28 15:00Brad KingResolutionopen => fixed

Notes
(0010030)
Brad King   
2007-12-28 15:00   
I've fixed this in CMake CVS:

/cvsroot/CMake/CMake/Source/cmMakefileExecutableTargetGenerator.cxx,v <-- cmMakefileExecutableTargetGenerator.cxx
new revision: 1.39; previous revision: 1.38
/cvsroot/CMake/CMake/Source/cmMakefileLibraryTargetGenerator.cxx,v <-- cmMakefileLibraryTargetGenerator.cxx
new revision: 1.50; previous revision: 1.49
/cvsroot/CMake/CMake/Source/cmMakefileTargetGenerator.cxx,v <-- cmMakefileTargetGenerator.cxx
new revision: 1.80; previous revision: 1.79
/cvsroot/CMake/CMake/Source/cmMakefileTargetGenerator.h,v <-- cmMakefileTargetGenerator.h
new revision: 1.18; previous revision: 1.17