Hi,<div><br></div><div>I&#39;m building gtk2hs on a mac with -fsplit-objs, and during compilation of the largest file, which produces about 7000 split objects, the linking phase fails.</div><div>I&#39;m assuming that&#39;s because the command line length has been exceeded, because other files compile fine, without -fsplit-objs it compiles fine too, and it compiles fine *with* -fsplit-objs on other OS - so perhaps the reason is in mac&#39;s tempfile name generation (they&#39;re longer than on other platforms) or something.</div>
<div><br></div><div>Anyway.</div><div><br></div><div>I think a nice fix would be to employ gcc&#39;s ability to read options from a file - gcc @file - and write overly long option strings into temp files.</div><div><br></div>
<div>It&#39;d be fun for me to implement this as my first contribution to ghc; is this a good idea in general?<br clear="all"><div><br></div>-- <br>Eugene Kirpichov<br>Principal Engineer, Mirantis Inc. <a href="http://www.mirantis.com/" target="_blank">http://www.mirantis.com/</a><br>
Editor, <a href="http://fprog.ru/" target="_blank">http://fprog.ru/</a><br>
</div>