From 2a726918764c2949a207b7a74d5ee2720d59c423 Mon Sep 17 00:00:00 2001 From: Geoffrey Keating Date: Sun, 22 Dec 2002 06:46:41 +0000 Subject: [PATCH] configure.in (extra_ranlibflags_for_target): New variable. * configure.in (extra_ranlibflags_for_target): New variable. (*-*-darwin): Add -c to ranlib commands. * configure (tooldir): Handle extra_ranlibflags_for_target. From-SVN: r60397 --- ChangeLog | 6 ++++++ configure | 3 ++- configure.in | 5 +++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a2423d408b8..3b3f386cb3a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-12-21 Geoffrey Keating + + * configure.in (extra_ranlibflags_for_target): New variable. + (*-*-darwin): Add -c to ranlib commands. + * configure (tooldir): Handle extra_ranlibflags_for_target. + 2002-12-19 Nathanael Nerode * Makefile.tpl: Revert HJL's change. diff --git a/configure b/configure index 3a275076b8d..8314a84b530 100755 --- a/configure +++ b/configure @@ -87,7 +87,7 @@ srctrigger= target_alias=NOTARGET target_makefile_frag= undefs=NOUNDEFS -version="$Revision: 1.46.6.11 $" +version="$Revision: 1.50 $" x11=default bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' @@ -1013,6 +1013,7 @@ else NM_FOR_TARGET='\$(USUAL_NM_FOR_TARGET)' NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} RANLIB_FOR_TARGET='\$(USUAL_RANLIB_FOR_TARGET)' + RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} WINDRES=windres WINDRES_FOR_TARGET='\$(USUAL_WINDRES_FOR_TARGET)' LEX='\$(USUAL_LEX)' diff --git a/configure.in b/configure.in index 82cca6c2383..15347aabdb9 100644 --- a/configure.in +++ b/configure.in @@ -1146,6 +1146,7 @@ fi extra_arflags_for_target= extra_nmflags_for_target= +extra_ranlibflags_for_target= case "${target}" in i[3456]86-*-netware*) target_makefile_frag="config/mt-netware" @@ -1163,6 +1164,10 @@ case "${target}" in extra_arflags_for_target=" -X32_64" extra_nmflags_for_target=" -B -X32_64" ;; + *-*-darwin*) + # ranlib from Darwin requires the -c flag to look at common symbols. + extra_ranlibflags_for_target=" -c" + ;; mips*-*-pe | sh*-*-pe | *arm-wince-pe) target_makefile_frag="config/mt-wince" ;;