Article delegate-en/2621 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A2601@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: cross compilation of delegate
13 May 2004 21:31:00 GMT feedback@delegate.org (Yutaka Sato)
The DeleGate Project


On 04/23/04(16:43) you "simon abraham" <sim_abr@hotmail..> wrote
in <_A2601@delegate-en.ML_>
 |i have used delegate proxy server on normal linux machine.and it works fine.
 |i would like to know how to cross compile it for arm linux.

What machine is your target ?
I've made DeleGate/8.9.3 and SSLway on Zaurus and released it at
<URL:ftp://ftp.delegate.org/pub/DeleGate/bin/Zaurus/>
(This was made on Zaurus itself)

Now I tried cross compilation for Zaurus on MacOS X.  Firstly I downloaded
ready-to-use package of gcc for Zaurus (ARM-Linux) from 
<URL:http://www.dsitri.de/wiki.php?page=Zaurus-X-gcc> (thanx)
and installed it just by clicking.  It was installed at
/Developer/Zaurus-X-gcc/opt/Embedix/tools/arm-linux/bin by default.

Then I noticed that some executable files for host computer is necessary
to be put at the same place for guest tree.  What I did to cross compile
can be scripted like follows.

#!/bin/sh
#################### cross compilation of DeleGate ########################
ADMIN=me@mydomain
XCC="/Developer/Zaurus-X-gcc/opt/Embedix/tools/arm-linux/bin"
DGV=delegate8.9.3
DGZ=$DGV.tar.gz
set -x

gzip -d < $DGZ | tar xf -; mv $DGV dg-host
(
 cd dg-host
 make CC=gcc ADMIN=$ADMIN
)
gzip -d < $DGZ | tar xf -; mv $DGV dg-guest
(
 cd dg-guest
 cp ../dg-host/mk*.exe .
 export PATH="$XCC:$PATH"
 make CC=gcc ADMIN=$ADMIN
 cp ../dg-host/src/embed src
 rm src/_builtin.c
 make CC=gcc
)
###########################################################################

Cheers,
Yutaka
--
  D G   Yutaka Sato <y.sato@delegate.org> http://delegate.org/y.sato/
 ( - )  National Institute of Advanced Industrial Science and Technology
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V