Examples , using cross tools :
./configure CC="<path-to-armgcc> -L/<path-to-arm-tools>/lib/"
or
./configure \
CC="<path-to-armgcc> -L/<path-to-arm-tools>/lib/ \
-L/<path-to-other-cross-compiled-files>/lib/"
.. and / or ..
make CC="<path-to-armgcc> -L/<path-to-arm-tools>/lib/"
.....
I wonder, if it is also possible to set up a 'chroot environment' ,
thus hiding all system libraries , etc.
http://jblevins.org/computing/linux/ubuntu-chroot
.....