[GRASS-dev] current grass 6.3.cvs cross compilation

Glynn Clements glynn at gclements.plus.com
Sat Dec 2 13:41:08 EST 2006


Benjamin Ducke wrote:

> Bad news:
> it seems impossible to cross-compile the current GRASS 6.3.cvs version.
> 
> Bsically, every module I try to compile for Win32 on my Linux box fails
> with sth. like this:
> 
>  *** No rule to make target
> `/home/benni/wingrass/source/grass6/dist.i586-pc-mingw32msvc/lib/libgrass_vect.so',
> needed by
> `/home/benni/wingrass/source/grass6/dist.i586-pc-mingw32msvc/bin/v.in.db.exe
> 
> Obviously, it should not be looking for libgrass_vect.so but for
> libgrass_vect.dll !
> 
> I am still able to compile the same modules, using the same tools, in a
> GRASS 6.1.CVS tree!
> 
> Maybe some change to the configure script or one of the GRASS makefiles
> broke something?

Odd.

AFAICT, cross-compiling shared libraries should never have worked. 
SC_CONFIG_CFLAGS uses "uname" to determine the platform, which returns
the build platform, not the host platform.

It should be using either $host or the components $host_cpu,
$host_vendor, and $host_os.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list