As per the PR audit trail, there is no reason to retain this in the building of GCC.

As for its use as a general option in tool-builds;
With current darwin toolsets it has the potential to cause issues when using convenience libs containing common.
OK for trunk?
Iain

gcc/ada:

        PR target/49992
        * mlib-tgt-specific-darwin.adb: Remove ranlib special case.
        * gcc-interface/Makefile.in (darwin): Likewise.
        

Index: gcc/ada/mlib-tgt-specific-darwin.adb
===================================================================
--- gcc/ada/mlib-tgt-specific-darwin.adb        (revision 179962)
+++ gcc/ada/mlib-tgt-specific-darwin.adb        (working copy)
@@ -68,7 +68,7 @@ package body MLib.Tgt.Specific is

    function Archive_Indexer_Options return String_List_Access is
    begin
-      return new String_List'(1 => new String'("-c"));
+      return new String_List'(1 => new String'(""));
    end Archive_Indexer_Options;

    ---------------------------
Index: gcc/ada/gcc-interface/Makefile.in
===================================================================
--- gcc/ada/gcc-interface/Makefile.in   (revision 179962)
+++ gcc/ada/gcc-interface/Makefile.in   (working copy)
@@ -2179,7 +2179,6 @@ ifeq ($(strip $(filter-out darwin%,$(osys))),)

   EH_MECHANISM=-gcc
   GNATLIB_SHARED = gnatlib-shared-darwin
-  RANLIB = ranlib -c
   GMEM_LIB = gmemlib
   LIBRARY_VERSION := $(LIB_VERSION)
   soext = .dylib


Reply via email to