From 84ef27d38576671e6b0abc3bee63b4a185c49dd7 Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Tue, 6 Sep 2011 18:53:29 +0000 Subject: [PATCH] Makefile.in (darwin, SO_OPTS): Provide architecture size switches to the link phase for shared libs. * gcc-interface/Makefile.in (darwin, SO_OPTS): Provide architecture size switches to the link phase for shared libs. From-SVN: r178606 --- gcc/ada/ChangeLog | 5 +++++ gcc/ada/gcc-interface/Makefile.in | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 6cda14bdfa1..f01481c9acd 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2011-09-06 Iain Sandoe + + * gcc-interface/Makefile.in (darwin, SO_OPTS): Provide architecture + size switches to the link phase for shared libs. + 2011-09-06 Iain Sandoe * gcc-interface/Makefile.in (x86_64 darwin arch): Adjust diff --git a/gcc/ada/gcc-interface/Makefile.in b/gcc/ada/gcc-interface/Makefile.in index bc95aff8d20..db1e2d9f7bb 100644 --- a/gcc/ada/gcc-interface/Makefile.in +++ b/gcc/ada/gcc-interface/Makefile.in @@ -2164,6 +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 ifeq ($(strip $(filter-out %86,$(arch))),) LIBGNAT_TARGET_PAIRS = \ a-intnam.ads