make cross-compiling sane out of the box; blackfin support
|Reported by:||SF/vapier||Owned by:||fingolfin|
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
Ticket imported from: #1821100. Ticket imported from: patches/839.
Change History (6)
comment:3 by , 13 years ago
|Status:||new → closed|
|Summary:||make cross-compiling sane out of the box → make cross-compiling sane out of the box; blackfin support|