aboutsummaryrefslogtreecommitdiff
path: root/gcc/configure.ac
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2004-07-04 17:18:59 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2004-07-04 17:18:59 +0000
commit343a610060e28dffda9123f1678b0e47d3626918 (patch)
tree71c7c7b9825df0800d0262264ce927a6de11fca7 /gcc/configure.ac
parentb41b25345b30416cc308c8b412a81542e2fe00f3 (diff)
downloadgcc-343a610060e28dffda9123f1678b0e47d3626918.zip
gcc-343a610060e28dffda9123f1678b0e47d3626918.tar.gz
gcc-343a610060e28dffda9123f1678b0e47d3626918.tar.bz2
configure.ac (ranlib_flags): New variable.
* configure.ac (ranlib_flags): New variable. * Makefile.in (RANLIB_FLAGS): New variable. (libbackend.a): Use it. * configure: Regenerated. From-SVN: r84088
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r--gcc/configure.ac13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 3460d27..50dc9f3 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -729,6 +729,19 @@ esac
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"
+ ;;
+*)
+ ranlib_flags=""
+esac
+AC_SUBST(ranlib_flags)
+
gcc_AC_PROG_INSTALL
# See if cmp has --ignore-initial.