OSDN Git Service

* configure.in (extra_ranlibflags_for_target): New variable.
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 22 Dec 2002 06:46:41 +0000 (06:46 +0000)
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 22 Dec 2002 06:46:41 +0000 (06:46 +0000)
(*-*-darwin): Add -c to ranlib commands.
* configure (tooldir): Handle extra_ranlibflags_for_target.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60397 138bc75d-0d04-0410-961f-82ee72b054a4

ChangeLog
configure
configure.in

index a2423d4..3b3f386 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-12-21  Geoffrey Keating  <geoffk@apple.com>
+
+       * 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  <neroden@gcc.gnu.org>
 
        * Makefile.tpl: Revert HJL's change.
index 3a27507..8314a84 100755 (executable)
--- 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)'
index 82cca6c..15347aa 100644 (file)
@@ -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"
     ;;