This is the mail archive of the
mailing list for the GCC project.
Re: darwin cross compiling breakage
- From: Mike Stump <mrs at apple dot com>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: geoffk at apple dot com (Geoffrey Keating), mark at codesourcery dot com (Mark Mitchell), stevenb dot gcc at gmail dot com (Steven Bosscher), gcc-patches at gcc dot gnu dot org, ian at airs dot com (Ian Lance Taylor)
- Date: Mon, 12 Jun 2006 10:28:00 -0700
- Subject: Re: darwin cross compiling breakage
- References: <200606121650.k5CGotII001267@earth.phy.uc.edu>
On Jun 12, 2006, at 9:50 AM, Andrew Pinski wrote:
If you think I need it, please explain the command that you think
won't work, and I will run it and see if you are correct. I have a
feeling that it actually works. It appears to work just fine for me:
mrs $ gcc-4.2 -arch i386 t.c -c
but maybe I missed something?
Yes this is not really a cross but a fake cross.
Apple has other local changes to "fix" up the use of as/ld/ar/ranlib.
? The change that causes the build result to work isn't apple local:
if test x$host != x$target
case "$host","$target" in
# Darwin crosses can use the host system's libraries and
# because of the fat library support. Of course, it must be
# same version of Darwin on both sides. Allow the user to
# just say --target=foo-darwin without a version number to mean
# "the version on this system".
hostos=`echo $host | sed 's/.*-darwin/darwin/'`
targetos=`echo $target | sed 's/.*-darwin/darwin/'`
if test $hostos = $targetos -o $targetos = darwin ;
CROSS="$CROSS -DNATIVE_CROSS" ;;
elif test "x$TARGET_SYSTEM_ROOT" != x; then
Anyway, it looks like you're now in agreement with me that I don't
So, now that that's out of the way, do you have any objections to the