Cross gcc Mailing List Archive

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

getting gcc to call something other than 'as'



hello all,

        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.

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

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

The problem is that when libgcc1.a is being built, xgcc calls 'as'
rather than 'xas', ie it calls the native compiler rather than the 
cross-compiler.  I hacked a solution by putting a symbolic link from
as to xas but, this broke the build when the native gcc when looking
for the native as.


Am I doing something stupid ???

Thanks in advance..


Kym
-- 
Kym B Newbery  VK5XKN          |    email @work  knewbery@awadi.com.au
Hardware Design Engineer       |    phone @work  +61 8 256 0904
British Aerospace Australia    |  
Salisbury, South Australia     |

Follow-Ups:

Home | Subject Index | Thread Index