http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49992
--- Comment #32 from Iain Sandoe <iains at gcc dot gnu.org> 2011-08-09 20:28:54 UTC --- testing this (all languages, lto bootstrap, compare debug) on darwin 9. will post comment 6 for review (it's a tidy up anyway unless there's some gotcha reason for not doing it on some platform). Index: configure.ac =================================================================== --- configure.ac (revision 177599) +++ configure.ac (working copy) @@ -2274,8 +2274,9 @@ case "${target}" in extra_arflags_for_target=" -X32_64" extra_nmflags_for_target=" -B -X32_64" ;; - *-*-darwin[[3-9]]*) - # ranlib before Darwin10 requires the -c flag to look at common symbols. + *-*-darwin[[3-8]]*) + # Some earlier (circa 2002) version of Darwin required that common symbols + # were placed in archive tocs to resolve an issue with g77. extra_ranlibflags_for_target=" -c" ;; esac Index: gcc/configure.ac =================================================================== --- gcc/configure.ac (revision 177599) +++ gcc/configure.ac (working copy) @@ -821,13 +821,11 @@ 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. - ranlib_flags="-c" - ;; +*-*-darwin[[3-8]]*) + # Some earlier (circa 2002) version of Darwin required that common symbols + # were placed in archive tocs to resolve an issue with g77. + extra_ranlibflags_for_target=" -c" + ;; *) ranlib_flags="" esac