As an aside, the cross compiler successfully builds and links target libraries because it uses:

[EMAIL PROTECTED]:~/gcc-build$ cat gcc/as
#!/bin/sh
exec /opt/odcctools/bin/i386-apple-darwin8.4.1-as "$@"
[EMAIL PROTECTED]:~/gcc-build$ cat gcc/collect-ld
#!/bin/sh
exec /opt/odcctools/bin/i386-apple-darwin8.4.1-ld "$@"
[EMAIL PROTECTED]:~/gcc-build$

I guess I'm asking for the driver to have parity with gcc's build system, which prepends the target name for these tools

hmmmm... the configure scripts try to match the driver and collect2, in order to test the same assembler and linker that the installed compiler uses. But it looks like it fails for cross-compilation, when using tools different from GNU binutils.

A workaround is to install the assembler, linker, etc. in /opt/odcctools/i386-apple-darwin8.4.1/bin (for example by hard-linking them to the tools you installed in /opt/odcctools/bin). This is what GNU binutils do during installation.

Paolo

Reply via email to