Cross-compiling for ARM

To cross-compile for ARM, configure like this:

./configure --host=arm-none-linux-gnueabi CC=arm-linux-gnueabi-gcc CXX=arm-linux-gnueabi-g++

If you get some error like this:

../arm-angstrom-linux-gnueabi/bin/ld: .libs/local_lat: hidden symbol `__sync_fetch_and_add_4' in /usr/local/angstrom/arm/lib/gcc/arm-angstrom-linux-gnueabi/4.5.3/libgcc.a(linux-atomic.o) is referenced by DSO
../arm-angstrom-linux-gnueabi/bin/ld: final link failed: Nonrepresentable section on output

, try to add:
export LDFLAGS="-lgcc -lgcc_s"; ./configure --host=arm-***-linux-gnueabi

To know more, follow this:
[https://gcc.gnu.org/ml/gcc-help/2010-11/msg00198.html]