Help - Search - Members - Calendar
Full Version: cross compile PATH problem
OESF Portables Forum > General Forums > General Discussion
summer00
1)
i have the cross-compile toolchain in /usr/local/tools/linux/arm/gcc-3.2.2/arm-linux/bin/gcc , now what i want to do is to compile a program with configure script, how do i set the path so that the computer will use the arm gcc(in the path i've just mentioned) instead of the normal gcc ?

2)
is this the command to compile ?
./configure --host=arm-linux

thanks a lot
lardman
source dev-arm-OZ.sh
./configure --host=arm-linux

For my toolchain this is what I use in my dev-arm-OZ.sh script, adapt to suit your needs:

=======================================
#!/bin/bash

CC=arm-linux-gcc
CXX=arm-linux-g++
CCX=arm-linux-gcc
CXXX=arm-linux-g++
COMPILER=arm-linux-gcc
LINKER=arm-linux-g++
G77=arm-linux-g77
F77=arm-linux-g77

PATH=/usr/local/arm/3.3.2/bin:/usr/local/arm/3.3.2/arm-linux/bin:$PATH

PS1='!OZ-dev-armu@h:w$ '

export PATH CC CXX CCX CXXX COMPILER LINKER G77 F77
echo "Altered environment for OZ 3.3.2 Development"
========================================
summer00
QUOTE
source dev-arm-OZ.sh
./configure --host=arm-linux

For my toolchain this is what I use in my dev-arm-OZ.sh script, adapt to suit your needs:

=======================================
#!/bin/bash

CC=arm-linux-gcc
CXX=arm-linux-g++
CCX=arm-linux-gcc
CXXX=arm-linux-g++
COMPILER=arm-linux-gcc
LINKER=arm-linux-g++
G77=arm-linux-g77
F77=arm-linux-g77

PATH=/usr/local/arm/3.3.2/bin:/usr/local/arm/3.3.2/arm-linux/bin:$PATH

PS1='!OZ-dev-armu@h:w$ '

export PATH CC CXX CCX CXXX COMPILER LINKER G77 F77
echo "Altered environment for OZ 3.3.2 Development"
========================================



what is the PS1 for ? thanks
lardman
It changes the command prompt, it's not necessary (for everything to work) but it serves as a reminder that the particular terminal has this stuff sourced.


Si
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2019 Invision Power Services, Inc.