This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: darwin cross compiling breakage

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
mrs $

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 headers,
# because of the fat library support. Of course, it must be the
# 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 ; then

            i?86-*-*,x86_64-*-* \
            | powerpc*-*-*,powerpc64*-*-*)
                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 need it.

So, now that that's out of the way, do you have any objections to the proposed patch?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]