Author Topic: setting arm-gcc PATH?  (Read 1635 times)

summer00

  • Newbie
  • *
  • Posts: 42
    • View Profile
setting arm-gcc PATH?
« on: June 16, 2004, 06:01:23 am »
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

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
setting arm-gcc PATH?
« Reply #1 on: June 16, 2004, 06:22:19 am »
You need to set the env vars CC, LINKER, etc.

See my reply to your other post. Or look here: http://www.zaurususergroup.com/index.php?n...iewtopic&t=1072


Simon
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva