#8734 closed patch
make cross-compiling sane out of the box; blackfin support
Reported by: | SF/vapier | Owned by: | fingolfin |
---|---|---|---|
Priority: | normal | Component: | Ports |
Version: | Keywords: | ||
Cc: | Game: |
Description
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.
Attachments (1)
Change History (6)
comment:1 by , 17 years ago
comment:2 by , 17 years ago
the new one attached should fix it File Added: scummvm-cross-compile.patch
comment:3 by , 17 years ago
Owner: | set to |
---|---|
Status: | new → closed |
Summary: | make cross-compiling sane out of the box → make cross-compiling sane out of the box; blackfin support |
comment:4 by , 17 years ago
Works great now. Very useful addition indeed, thanks!
I also added config.sub and updated config.guess to the latest official version.
comment:5 by , 6 years ago
Component: | → Ports |
---|
I didn't have a chance to actually review your patch, but a quick test on my OS X machine shows that it's not quite ready for inclusion ;-)
$ ./configure Running ScummVM configure... Looking for C++ compiler... none found! $