+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
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 \
-- 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 --