This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/28026] Cross compiles involving Darwin fail
- From: "w dot northcott at unsw dot edu dot au" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jun 2006 20:28:55 -0000
- Subject: [Bug bootstrap/28026] Cross compiles involving Darwin fail
- References: <bug-28026-8803@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from w dot northcott at unsw dot edu dot au 2006-06-14 20:28 -------
(In reply to comment #1)
> What problem did you see when ld wasn't in build_gcc?
collect2: cannot find ld
when trying to link cross-compilers.
This is not seen whn building on a fat library machine because then there are
no cross-compiler builds.
>
> Also, if the compiler is configured with isysroot, if gcc.c is taught to
> default to using it, then I think the change to configure.ac isn't needed.
> This also helps with point #3 I think.
>
The logic that comes out of my tests runs like this:
1. Unless CROSS_COMPILE is defined --with-sysroot and its derivative
TARGET_SYSTEM_ROOT are ignored. So the mod to configure.ac is absolutely
essential
2 --with-sysroot would be enough on most platforms. the -isysroot in the
CFLAGS is needed to prevent the issue with libsystem referencing the system
libmathCommon as in my email.
Bill
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28026