Hi
I have prepared a patch that works around Windows 32k command line
length restriction when invoking ar and ld, this makes using
ghc's split-objs possible in practice.
Tue May 9 04:15:32 FLE Daylight Time 2006 Esa Ilari Vuokko
* Workaround for ar and ld for Windows cmdline length restriction
There is no guarantee that algorithm works, ideally I should
cut the lines at 32k, but instead I just call ar/ld for each one
hundred files. Ld's case is a bit more complicated, with temp
files.
Algorithms aren't perfect, but I think they fit practically all
packages out there (who has path to object file longer than
320+ characters, and hundred more?)
Better solution would be to use ar's and ld's @file-functionality,
but this isn't available in mingw's stable (or whatever) binutils
yet, and of course builds for 6.4.x series will never have them, so
it'd need ar/ld version checking which isn't totally trivial to add.
Best regards,
--Esa
PS. Please CC me on replies as I am not subscribed.
PSS. It seems to me that indentation in source has both tabs and
spaces. That feels risky.