Cross-compiling SDL lib

I’m trying to cross-compile SDL for a SuperH linux platform.
I have apparently not been successful in using the configure scripts to
cross-compile, as it always ends up compiling for the PC I’m running on.
My cross-compile environment has worked fine for kernel, X, and other apps.
I haven’t been able to do all the edits by hand and get it to compile,
either though.
Any advice is apreciated.
Thanks,
tmw

  • Thomas Walters on Sun, Mar 10, 2002:

I’m trying to cross-compile SDL for a SuperH linux platform.
I have apparently not been successful in using the configure scripts to
cross-compile, as it always ends up compiling for the PC I’m running on.
My cross-compile environment has worked fine for kernel, X, and other apps.
I haven’t been able to do all the edits by hand and get it to compile,
either though.
Any advice is apreciated.

I’ve done this before. Use something like the following:

$ CC="/path/to/sh-linux-gcc -ml -m4" ./configure --prefix=
–host=sh-linux --build=arch-linux …

$ make ; make install

To install to the target directory:

$ make prefix= install

The should be the path to where your cross libraries are
installed, e.g. wherever you installed glibc. should be
wherever your destination shared libs, etc. will go. Since this is
basically a standard cross-compiling build method (usually works for all
cross-compiler enabled autoconf/automake projects) e-mail me privately if
you need more help.

M. R.
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020310/9807f1d9/attachment.pgp