[ scummvm-Patches-1821100 ] make cross-compiling sane out of the box

SourceForge.net noreply at sourceforge.net
Sat Oct 27 08:10:11 CEST 2007


Patches item #1821100, was opened at 2007-10-27 02:10
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=1821100&group_id=37116

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Mike Frysinger (vapier)
Assigned to: Nobody/Anonymous (nobody)
Summary: make cross-compiling sane out of the box

Initial Comment:
the configure script forces runtime tests in order to detect endian, type sizes, and other features that can just as easily be done by compile-only tests.  once i cleaned that up, it allows the configure script to provide a pretty sane setup by default without having to hardcode a crazy list of hosts in the file.

it may look like a lot, but really most of the changes are to move code out of the 'if ! cross-compiling' block into common build time detection for everyone.

now building for Blackfin is trivial:
$ ./configure --host=bfin-linux-uclibc 
Running ScummVM configure...
Looking for C++ compiler... bfin-linux-uclibc-g++
Checking for compiler version... 4.1.2, ok
Checking endianness... little
Type with 1 byte... char
Type with 2 bytes... short
Type with 4 bytes... int
Running on x86... no
Checking hosttype... linux-gnu
Checking whether building plugins was requested... no
Checking for Ogg Vorbis... no
Checking for Tremor... no
Checking for FLAC >= 1.0.1... no
Checking for MAD... no
Checking for ALSA >= 0.9... no
Checking for zlib... no
Checking for libmpeg2 >= 0.3.2... no
Checking for libfluidsynth... no
....

you also need to import config.sub from the GNU config project just like you've imported config.guess

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=1821100&group_id=37116




More information about the Scummvm-tracker mailing list