linux-mips
[Top] [All Lists]

Re: XFree 4.0.1 on mips, mipsel

To: Ulf Carlsson <ulfc@calypso.engr.sgi.com>
Subject: Re: XFree 4.0.1 on mips, mipsel
From: "Gleb O. Raiko" <raiko@niisi.msk.ru>
Date: Tue, 27 Jun 2000 12:01:04 +0400
Cc: Ralf Baechle <ralf@oss.sgi.com>, "Bradley D. LaRonde" <brad@ltc.com>, linux-mips <linux-mips@fnet.fr>, linux <linux@cthulhu.engr.sgi.com>
Organization: NIISI RAN
References: <20000623181736.A13410@bert.physik.uni-konstanz.de> <014f01bfdd33$8877b3c0$0701010a@ltc.com> <20000623185553.A20888@bert.physik.uni-konstanz.de> <019501bfdd35$bb301940$0701010a@ltc.com> <20000623190723.B20888@bert.physik.uni-konstanz.de> <01cb01bfdd3a$fc43b2c0$0701010a@ltc.com> <39547DB3.4FF35339@niisi.msk.ru> <20000624131218.A17554@bilbo.physik.uni-konstanz.de> <20000625001255.C894@bacchus.dhis.org> <14678.31422.353864.773880@calypso.engr.sgi.com>
Sender: owner-linux-mips@oss.sgi.com
Ulf Carlsson wrote:
> 
> Ralf Baechle writes:
>  > On Sat, Jun 24, 2000 at 01:12:18PM +0200, Guido Guenther wrote:
>  >
>  > > [..snip..]
>  > > > If you cross-compile, you just redefine most of the stuff like CcCmd,
>  > > > ArCmd, etc, anyway.
>  > > Yes, but you have to make sure the redefinitions don't get redefined
>  > > again, therefore IMHO an "#ifdef AsCmd" is needed. Otherwise the
>  > > definition in hosts.def will be overriden by the one in linux.cf.
>  >
>  > Does X building ever need the hostcompiler?  If not, then you can easily
>  > do crossbuilds like:
>  >
>  >   PATH=<prefix>/<target>/bin:$PATH make ...
> 
> Yes.  You need the hostcompiler when you do X builds.  It is possible
> to get around it though.  I have the commands that I used in two shell
> scripts.
> 
> First I have to to prepare for the cross build:
> 
> #!/bin/sh
> make clean
> make Makefile.boot
> make Makefiles
> (cd config; make)
> make includes
> make depend
> (cd fonts/bdf; for i in $(find -name 'Makefile'); do sed -e 
> 's/\$(XBUILDBINDIR)\///' < $i > $i.tmp; mv $i.tmp $i; done)
> 
> Then I'm ready to build the rest with the cross compiler:
> 
> #!/bin/sh
> export PATH=/usr/glibc-mips/bin:$PATH
> make -k CC=mips-linux-gcc LD=mips-linux-ld AS=mips-linux-as 
> RANLIB=mips-linux-ranlib $@
> 
> You probably have a better solution though :-)

Sure, host.def attached.

X bitmap

<Prev in Thread] Current Thread [Next in Thread>