[geos-devel] Patch: Fixing GEOS HEAD compilation under MingW

Mark Cave-Ayland mark.cave-ayland at ilande.co.uk
Wed Jan 3 08:23:46 EST 2007


On Wed, 2007-01-03 at 09:00 +0000, Mark Cave-Ayland wrote:

> Finally, even when this patch is applied, the final link causes the
> MingW linker to segfault :( This is because libtool decides that the
> number of object files is so large that it needs to complete the final
> link in two stages, and my guess is that there is a bug somewhere in
> MingW's ld.exe when used in this way. Fortunately there is a way to
> alter libtool to persuade it to link the entire library in one go (see
> below).

(cut)

> 	3) Run the following command to persuade libtool to use
> 	a longer command line for linking:
> 
> 	mv libtool libtool.orig
> 	cat libtool.orig | sed 's/max_cmd_len=8192/max_cmd_len=16384/g'
> 	> libtool
> 
> 	4) Execute the build using "make" or "make install"


I've just discovered that the issue with ld.exe crashing was a problem
with my MingW setup - I've fixed this, and just completed a clean GEOS
build under MingW by downloading a fresh source and applying the patch
from my previous email :D


Kind regards,

Mark.





More information about the geos-devel mailing list