[CMake] mingw32 linker line exceeds win32 limitations

Brad King brad.king at kitware.com
Thu Dec 20 12:41:08 EST 2007


Felix Obenhuber wrote:
> On Do, 2007-12-20 at 12:12 -0500, Brad King wrote:
>> Felix Obenhuber wrote:
>> CMake uses a "link script" approach to avoid placing the entire link
>> line in the makefile.  It is enabled on certain generators (including
>> MinGW) and used for linking libraries but has not been yet needed for
>> executables.  Is the target for which you're having problems a library
>> or an executable target?
> 
> It's an executable target. 
> 
> I've solved the issue the way I've put almost all objects into a lib and
> linked the rest against. That's work. Thanks for your answer: Now I know
> why...
> 
> Is there any reason, the link script is not used for binaries? We've got
> lots of files ;-)...

There is not technical reason AFAIK.  It was simply that lots of people
hit the problem for static libraries and no one encountered (and
reported) the problem for executables until now.  Please submit an issue
to the bug tracker and send me the bug number.

Thanks,
-Brad


More information about the CMake mailing list