The following patch addresses 
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42554#c15
by extending the logic used in...

Author: mrs
Date: Fri Mar 19 10:19:52 2010
New Revision: 157563

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157563
Log:
    PR ada/42554
    * configure.ac: Only pass -c to ranlib for darwin9 and earlier.
    * configure: Regenerate.

Modified:
    trunk/ChangeLog
    trunk/configure
    trunk/configure.ac

to gcc/configure. This eliminates the various bootstrap failures in PR49992, 
caused by duplicate
symbols between errors.c and diagnostic.c due to radar 6320843, "duplicate 
symbols from static libraries not
properly ignored". Since radar 6320843 only effects Xcode 3.2 and later, there 
is little
reason to change the logic as applied in r157563 of only inhibiting the use of 
the '-c' flag
with ranlib on darwin10 and later. Bootstrap and regression tested on 
x86_64-apple-darwin10.

http://gcc.gnu.org/ml/gcc-testresults/2011-08/msg01198.html

Okay for gcc trunk?
             Jack



2010-08-11  Jack Howarth <howa...@bromo.med.uc.edu>

        PR 42554/49992

        * gcc/configure.ac: Only pass -c to ranlib for darwin9 and earlier.
        * gcc/configure.ac: Regenerate.


Index: gcc/configure.ac
===================================================================
--- gcc/configure.ac    (revision 177684)
+++ gcc/configure.ac    (working copy)
@@ -821,11 +821,8 @@ gcc_AC_PROG_LN_S
 ACX_PROG_LN($LN_S)
 AC_PROG_RANLIB
 case "${host}" in
-*-*-darwin*)
-  # By default, the Darwin ranlib will not treat common symbols as
-  # definitions when  building the archive table of contents.  Other 
-  # ranlibs do that; pass an option to the Darwin ranlib that makes
-  # it behave similarly.
+*-*-darwin[[3-9]]*)
+  # ranlib before Darwin10 requires the -c flag to look at common symbols.
   ranlib_flags="-c" 
   ;;
 *)

Reply via email to