This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Fix Darwin bootstrap
- From: Geoffrey Keating <geoffk at geoffk dot org>
- To: mark at codesourcery dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 05 Jul 2004 12:12:28 -0700
- Subject: Re: PATCH: Fix Darwin bootstrap
- References: <200407041722.i64HM5xJ026517@sirius.codesourcery.com>
Mark Mitchell <mark@codesourcery.com> writes:
> The Darwin version of ranlib does not make common definitions
> available in the archive table of contents -- unless you pass it the
> "-c" option. Most other versions of ranlib do make such definitions
> available, and GCC presently depends on that behavior, accidentally.
>
> (On a meta note, how is libbackend.a a win? I'd love it if we really
> have a library for the back end, but we don't, and to get there we
> need to change the code, not the build process. Right now, it seems
> like building this .a file is just a way of slowing down the
> bootstrap...)
>
> Tested on powerpc-apple-darwin7.4.0, installed on the mainline.
This is similar to this code in the toplevel configure:
*-*-darwin*)
# ranlib from Darwin requires the -c flag to look at common symbols.
extra_ranlibflags_for_target=" -c"
;;