Cross Compiling on Linux
From The Neuros Technology Wiki
Here is an example on how to cross compile tcpdump for the neuros osd:
- Get the latest source for libpcap and tcpdump from http://www.tcpdump.org
- Compile libpcap
$ tar zxvf libpcap-0.9.5.tar.gz
$ cd libpcap-0.9.5/
$ CC=arm-linux-gcc ac_cv_linux_vers=2 ./configure --host=arm-linux --with-pcap=linux
$ make
- Compile tcpdump
$ cd ..
$ tar zxvf tcpdump-3.8.3.tar.gz
$ cd tcpdump-3.8.3/
$ CC=arm-linux-gcc ac_cv_linux_vers=2 ./configure --host=arm-linux --with-pcap=linux
- Copy to the neuros osd (I just copied it to my nfs share NFS)
$ sudo cp tcpdump /srv/neuros-osd-rootfs/usr/local/bin/
- Run tcpdump! (ignoring telnet traffic on port 23)
$ /usr/local/bin/tcpdump -i eth0 not port 23
