how to specify big-endian build for SH3 toolchain?
Dan Kegel
dank@kegel.com
Thu Dec 2 17:17:00 GMT 2004
Dan Kegel wrote:
> Robert P. J. Day wrote:
>
>> note how calling the compiler uses just the typical -m3 and -m[lb]
>> options, but calling the pre-processor adds in the options contained
>> in the $DEFINES variable. is this what might be missing from the
>> current crosstool build? (i'm still working my way thru some of the
>> logic.)
>
>
> Yes and no. Trying to use a single toolchain for both
> big and little endian means multilibbing, i.e. storing
> .o's and .a's and .so's for both big and little endian
> in the same toolchain, and crosstool doesn't try to do that.
>
> It's a bit of a tradeoff: crosstool aims at simplicity
> (since it was hard enough to get something *simple* working!).
> Multilibbing adds convenience at the cost of simplicity.
One other thing: those defines are typically added automatically
in the spec file, so you shouldn't need to add them in a wrapper
if gcc is configured right, I think.
- Dan
--
Trying to get a job as a c++ developer? See http://kegel.com/academy/getting-hired.html
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list