Crosscompiling
Jump to navigation
Jump to search
Crosscompiling is easy these days, even with most autoconf/automake configurable packages. The following works for me
- Create a directory where you want to put the fresh compiled libraries, header files and binaries. For example
# mkdir /tmp/reciva/root
- Make sure the toolchains 'bin' dir is in your path
# export PATH=$PATH:/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-softfloat-linux-gnu/bin/
- Configure the package, using the cross compiler and optional previously installed libraries and headers
# export LDFLAGS="-L/tmp/reciva/root/lib" # export CPPFLAGS="-I/tmp-reciva/root/include" # ./configure --prefix=/tmp/reciva/root/ --host=arm-softfloat-linux-gnu "$@"
- If all went well, configure should finish without problems, and you can now build and install the software
# make # make install