[Reference:<_A2601@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en
[DeleGate-En] Re: cross compilation of delegate
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 <pfqcabdyi-mykgh4zm4btw.ml@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
|