[Gdal-dev] Makefile problem with MingW

Frank Warmerdam warmerdam at pobox.com
Fri Nov 26 15:55:50 EST 2004


Norman Vine wrote:
>  Hi Frank
> 
> Is it possible to add a configure check for whether to use 
>   cpl_vsil_win32.o 
> instead of 
>   cpl_vsil_unix_stdio_64.o
> 
> for the MingW build
> 
> As it is one has to hand edit the $(GDAL)/port/GNUMakefile
> when building with MSYS or MingW
> 
> probably easiest to do this by adding a new variable to 
> GDALmake.opt
> 
> say CPL_VSIL_STDIO
> 
> and then in the makefile
> 
> OBJ	=	cpl_conv.o cpl_error.o cpl_string.o cpl_vsisimple.o \
> 		cplgetsymbol.o cpl_dir.o cpl_path.o cpl_csv.o cpl_findfile.o \
> 		$(CPL_VSIL_STDIO).o cpl_minixml.o cpl_multiproc.o \
> 		cpl_list.o

Norman,

OK, I would be happy to make such a change, but how do we drive it?  That is,
how does configure now when it should set CPL_VSIL_STDIO to tif_vsil_win32.o
instead of tif_vsil_unix_stdio_64.o?   Do I need to watch for a MINGW cannonical
name for the platform or something like that?

Note, I don't use MINGW so a specific patch I can apply would be the safest
way to approach this if you have the time to prepare one.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list