[Gdal-dev] Makefile problem with MingW

Norman Vine nhv at cape.com
Fri Nov 26 14:18:54 EST 2004


 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


note: Cygwin wants to use the unix version

Thanks 

Norman











More information about the Gdal-dev mailing list