LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Setting arm-gcc path? (https://www.linuxquestions.org/questions/linux-general-1/setting-arm-gcc-path-194095/)

karfei00 06-16-2004 04:59 AM

Setting arm-gcc path?
 
i have two types of compiler installed in my system

1)usr/bin/gcc --> normal gcc compiler
2)usr/local/tools/linux/arm/gcc-3.2.2/arm-linux/bin/gcc --> arm gcc compiler

now i wish to build a program that could run on a zaurus PDA using CONFIGURE SCRIPT.
in this case, i wish to use the cross compiler, so how should i set the path ?

i have tried to run below

$PATH=/usr/local/tools/linux/arm/gcc-3.2.2/arm-linux/bin:$PATH ./configure --host=am-linux
$make

but the computer would use normal gcc instead of the arm-gcc,how should i do?

$ file application
gave the result :
ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), not stripped


All times are GMT -5. The time now is 09:32 PM.