compile driver finding binutils
Andrew Stubbs
Andrew.Stubbs@st.com
Thu Aug 9 02:33:00 GMT 2001
Hi
We have a need to use both cross gcc and, of course, binutils cross-tools,
but not have them installed in the same location.
I have tried configuring gcc using --with-as=.... and --with-ld=..., but
these seem to require an absolute path to the tools. This would not be a
problem except that the tools will not always be mounted in exactly the
same place (depending on curcumstances and machine).
At present the compile driver first searches in prefix/target/bin and then
in the standard locations (does it search the path?). However, it only
ever searches for things called 'as' or 'ld', which is stupid really for
a cross compiler as it then tries to use a native assembler - not good.
Would it be ok to modify it so that, between the above two searches, it
also searches the standard locations for tools with an exec-prefix
matching the compiler? It would probably be best for this to search
the path as it is more likely to find cross tools here than anywhere
else - this would also allow us to change which tools we use more easily
(useful while you are working on them).
Also, for a cross compiler I do not think it is suitable for it to search
the standard locations for 'as' or 'ld' as this is almost certainly not
going to find the right tools for the job - it would be better to not find
any than to try to assemble SH code with a sparc assembler.
I understand that there are command line options to do something like
this, but I don't want to have to write an essay every time I compile
'hello world'.
Thanks
------------------------------------------------------------------------
| Andrew Stubbs, | E-mail: Andrew.Stubbs@st.com |
| STMicroelectronics Ltd., | or stubbsa@bristol.st.com |
| 1000 Aztec West, | |
| Almondsbury, | Tel: +44 (0)1454 462325 |
| Bristol, BS32 4SQ, U.K. | Fax: +44 (0)1454 617910 |
------------------------------------------------------------------------
More information about the Gcc
mailing list