Cross gcc Mailing List Archive

[Prev][Next][Index][Thread]

Re: getting gcc to call something other than 'as'



Kym Newbery wrote:

Heh, there is no escape 8)  G'day Kym, LTNS! 

>         I have been building a m68k cross compiler on my Linux PC in
> my spare time and I have been having some minor problems with
> instructing the cross compiler to use the cross assembler 'xas' rather
> than the native assembler.

Don't try to call it that; it's a short road to grief.  Stick with
the standard GNU naming scheme.
 
> I have Linux 2.0.12, with gcc 2.7.2 and binutils 2.7.0.14 (??).  I
> have built binutils with no problems with the following configure
> parameters
> 
>    ./configure --target=m68k-unknown-coff --nfp --program-prefix=x

Dike the 'program-prefix' switch, and you'll get 'm68k-unknown-coff-as',
which you can alias if you can't bear typing it, or use a Makefile
define and forget about it.

> I wanted the cross assembler to be called 'xas' rather than 'as'.
> This part worked ok..  I then patched gcc2.7.2 with the cygnus patch
> and configured gcc with the following parameters
> 
>   ./configure --target=m68k-unknown-coff --nfp --program-prefix
>               --with-gnu-as --with-gnu-ld

No.  You should specify a '--prefix=<path>' option to both configure
invocations (or accept the default of /usr/local), which will cause
everything to Just Work.  I have crosses for m68k-coff,
m68k-unknown-rtems,
mips-unknown-ecoff, mips-unknown-elf, mips-unknown-openbsd2.0 and
i386-unknown-go32 all coexisting with the native BSD gcc in 
perfect harmony.
 
> Am I doing something stupid ???

Apart from using Linux, I guess your mistakes are fairly understandable
8)
If you need more help with this, give me a call & we'll get you
sorted in no time!
 
> Kym B Newbery  VK5XKN          |    email @work  knewbery@awadi.com.au

--
]] Mike Smith, Software Engineer        msmith@gsoft.com.au            
[[
]] Genesis Software                     genesis@gsoft.com.au           
[[
]] High-speed data acquisition and      (GSM mobile)     0411-222-496  
[[
]] realtime instrument control.         (ph)          +61-8-8267-3493  
[[
]] Unix hardware collector.             "Where are your PEZ?" The Tick 
[[

References:

Home | Subject Index | Thread Index