[Klone-users] Cross compilation

Stefano Barbato barbato at koanlogic.com
Tue Dec 18 17:23:40 EST 2007


Hi,

On 18/dic/07, at 12:08, Iring, Peter wrote:
>

> So I expect that modification of MAKL_PLATFORM should tell to make to
> use powerpc-linux-gcc compiler.
>
> But if I run "./configure --cross_compile" and "sudo make" I can see
> that gcc is compiling source code:
>
> gcc
> -I/hit73_sw/tools/klone-2.0.0/build/host/klone-core-2.0.0/libu/include
> -I/hit73_sw/tools/klone-2.0.0/build/host/klone-core-2.0.0 - 
> DHAVE_CONF_H
> -O2  -c webapp.c -o webapp.o
> ===> building standard webapp library
> rm -f libwebapp.a
> ar cq libwebapp.a
> `/hit73_sw/tools/klone-2.0.0/build/host/klone-core-2.0.0/makl/ 
> helpers/lo
> rder webapp.o | tsort`
> ranlib libwebapp.a
>
> What am I doing wrong?


nothing :)

when MAKL_PLATFORM is used the framework first compiles KLone for the  
host system (just once during the bootstrap) then it cross-compiles  
KLone for the target system. This is needed to build the tool used to  
translate .kl1 pages into C files (that must run on the host system).

s





More information about the klone-users mailing list