Hi, I am using on my Linksys NSLU2 backfire 10.03.1-rc6 ( ixp4xx ). I downloaded its toolchain to my 64bits lubuntu 11.10 environment
Yet I like to crosscompile a few packages in to the chain, to start with " openssl 0.9.8r " but did not succeed. Can one guide me thru (the last steps) please?
wget -P .
http://downloads.openwrt.org/backfir...1_eabi.tar.bz2
tar -xvjf OpenWrt-Toolchain-ixp4xx-for-armeb_v5te-gcc-4.3.3+cs_uClibc-0.9.30.1_eabi.tar.bz2
ln -s OpenWrt-Toolchain-ixp4xx-for-armeb_v5te-gcc-4.3.3+cs_uClibc-0.9.30.1_eabi/toolchain-armeb_v5te_gcc-4.3.3+cs_uClibc-0.9.30.1_eabi toolchain
export PATH=$PATH:~/toolchain/usr/bin
export CONCURRENCY_LEVEL=5; # got 4 cores+1
# openssl 0.9.8
wget -P .
http://www.openssl.org/source/openssl-0.9.8r.tar.gz
tar -xvzf openssl-0.9.8r.tar.gz
cd ~/openssl-0.9.8r
vi Makefile # instead of ./config to modify manually
make
make install
Makefile:
INSTALL_PREFIX=/home/dolphs/toolchain
INSTALLTOP=/home/dolphs/toolchain
CC= /home/dolphs/toolchain/usr/bin/armeb-openwrt-linux-gcc
AR= /home/dolphs/toolchain/usr/bin/armeb-openwrt-linux-ar $(ARFLAGS) r
RANLIB= /home/dolphs/toolchain/usr/bin/armeb-openwrt-linux-ranlib
The error message while running make is:
# /home/dolphs/OpenWrt-Toolchain-ixp4xx-for-armeb_v5te-gcc-4.3.3+cs_uClibc-0.9.30.1_eabi/toolchain-armeb_v5te_gcc-4.3.3+cs_uClibc-0.9.30.1_eabi/usr/bin/../lib/gcc/armeb-openwrt-linux-uclibcgnueabi/4.3.3/../../../../armeb-openwrt-linux-uclibcgnueabi/bin/
ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
make[2]: *** [link_app.] Error 1
make[2]: Leaving directory `/home/openwrt/openssl-0.9.8r/apps'
make[1]: *** [openssl] Error 2
make[1]: Leaving directory `/home/openwrt/openssl-0.9.8r/apps'
make: *** [build_apps] Error 1
Somewhere in Makefile the appropriate -L needs to be set to " L/home/dolphs/toolchain/lib " for libgcc_s.so (and .so.1), but I am simply overlooking it. Therefore attached the current Makefile, hope one can help out. Cheers!