]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada, remove flat_namespace library option from darwin port build/defaults :
authorIain Sandoe <iains@gcc.gnu.org>
Sat, 24 Sep 2011 20:25:42 +0000 (20:25 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Sat, 24 Sep 2011 20:25:42 +0000 (20:25 +0000)
* gcc-interface/Makefile.in (darwin): Do not issue the
'-flat_namespace' linker flag during Ada build.
* mlib-tgt-specific-darwin.adb: Remove '-flat_namespace' flag from the
default shared library options.

From-SVN: r179148

gcc/ada/ChangeLog
gcc/ada/gcc-interface/Makefile.in
gcc/ada/mlib-tgt-specific-darwin.adb

index 1d0a10cf32eb85f63fe6a02fb7dc00801ff66b89..3606791f1c42051d546493c2ec9355cb28c70354 100644 (file)
@@ -1,3 +1,10 @@
+2011-09-24  Iain Sandoe  <iains@gcc.gnu.org>
+
+       * gcc-interface/Makefile.in (darwin): Do not issue the
+       '-flat_namespace' linker flag during Ada build.
+       * mlib-tgt-specific-darwin.adb: Remove '-flat_namespace' flag from the
+       default shared library options.
+
 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
 
        * gcc-interface/decl.c (annotate_value): Look up expression for
index 6f8cf3b4beb39e185e1ebfa9f0e8bae70ddabd51..db7f563e13d727779a8f0336a1f3ac8c121abd51 100644 (file)
@@ -2164,7 +2164,7 @@ ifeq ($(strip $(filter-out %x86_64 linux%,$(arch) $(osys))),)
 endif
 
 ifeq ($(strip $(filter-out darwin%,$(osys))),)
-  SO_OPTS = -Wl,-flat_namespace -shared-libgcc
+  SO_OPTS = -shared-libgcc
   ifeq ($(strip $(filter-out %86,$(arch))),)
     LIBGNAT_TARGET_PAIRS = \
     a-intnam.ads<a-intnam-darwin.ads \
index 5bab21df7979c4a06afa4e711e7d5951b85480db..e04225370eb9c64b2e846869b09bd4a361ef551d 100644 (file)
@@ -57,15 +57,10 @@ package body MLib.Tgt.Specific is
 
    --  Local objects
 
-   Flat_Namespace : aliased String := "-Wl,-flat_namespace";
-   --  Instruct the linker to build the shared library as a flat
-   --  namespace image. The default is a two-level namespace image.
-
    Shared_Libgcc  : aliased String := "-shared-libgcc";
 
    Shared_Options : constant Argument_List :=
-                      (1 => Flat_Namespace'Access,
-                       2 => Shared_Libgcc'Access);
+                      (1 => Shared_Libgcc'Access);
 
    -----------------------------
    -- Archive_Indexer_Options --