LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cross compiler path (https://www.linuxquestions.org/questions/linux-newbie-8/cross-compiler-path-694444/)

tejas_dakor 01-02-2009 05:54 AM

cross compiler path
 
I want to compile sample code that run on arm target board.
How to set the cross compiler path for arm-linux target board.
I have already installed the toolchain.
I am using Fedora core 9.

knudfl 01-02-2009 07:01 AM

1) export PATH="$PATH:[toolchain-prefix]/bin"

2) Use absolute path :
/home/tejas_dakor/cross-tools/bin/gcc-arm-elf sample_code.c

3) For building an application, ./configure or make :
CC=/home/tejas_dakor/cross-tools/bin/gcc-arm-elf ./configure
and / or
CC=/home/tejas_dakor/cross-tools/bin/gcc-arm-elf make

CXX=/home/tejas_dakor/cross-tools/bin/g++-arm-elf ./configure
CXX=/home/tejas_dakor/cross-tools/bin/g++-arm-elf make
( g++ = c++ )
....


All times are GMT -5. The time now is 04:05 AM.