This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Crossbuilding a native compiler


Dan Kegel wrote:
I haven't done it yet.  You'd add a new directory
next to build-gcc called, say, build-gcc-target, and would configure gcc
just like the final gcc.  In other words, add another paragraph to
the end of crosstool.sh, looking something like the
following (no idea what horrible problems this will run into):

--------------------------------------------------------
mkdir -p build-gcc-native; cd build-gcc-native

if test '!' -f Makefile; then
    ${GCC_DIR}/configure --target=$TARGET --host=$TARGET --prefix=/usr \
        ${GCC_EXTRA_CONFIG} \

...


you might need to tell it where to get CC, etc., too...
- Dan


------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]