Makefile.in (darwin, SO_OPTS): Provide architecture size switches to the link phase...
authorIain Sandoe <iains@gcc.gnu.org>
Tue, 6 Sep 2011 18:53:29 +0000 (18:53 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Tue, 6 Sep 2011 18:53:29 +0000 (18:53 +0000)
* gcc-interface/Makefile.in (darwin, SO_OPTS): Provide architecture
size switches to the link phase for shared libs.

From-SVN: r178606

gcc/ada/ChangeLog
gcc/ada/gcc-interface/Makefile.in

index 6cda14bdfa19a0b7d47b85e917fe302ab787d8a4..f01481c9acdac0434ab5ec1efe7eb39c990e04e0 100644 (file)
@@ -1,3 +1,8 @@
+2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
+
+       * gcc-interface/Makefile.in (darwin, SO_OPTS): Provide architecture
+       size switches to the link phase for shared libs.
+
 2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
 
        * gcc-interface/Makefile.in (x86_64 darwin arch): Adjust 
index bc95aff8d201ef4f748e2701e2a1e717a5e6fadd..db1e2d9f7bbff90a107de4cf20f782e88eb3061b 100644 (file)
@@ -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<a-intnam-darwin.ads \
@@ -2184,6 +2185,7 @@ ifeq ($(strip $(filter-out darwin%,$(osys))),)
       LIBGNAT_TARGET_PAIRS += \
         $(X86_64_TARGET_PAIRS) \
         system.ads<system-darwin-x86_64.ads
+      SO_OPTS += -m64
     else
       LIBGNAT_TARGET_PAIRS += \
         $(X86_TARGET_PAIRS) \
@@ -2211,6 +2213,7 @@ ifeq ($(strip $(filter-out darwin%,$(osys))),)
       LIBGNAT_TARGET_PAIRS += \
         $(X86_TARGET_PAIRS) \
         system.ads<system-darwin-x86.ads
+      SO_OPTS += -m32
     else
       LIBGNAT_TARGET_PAIRS += \
         $(X86_64_TARGET_PAIRS) \
@@ -2243,7 +2246,6 @@ ifeq ($(strip $(filter-out darwin%,$(osys))),)
 
   EH_MECHANISM=-gcc
   GNATLIB_SHARED = gnatlib-shared-darwin
-  SO_OPTS = -Wl,-flat_namespace -shared-libgcc
   RANLIB = ranlib -c
   GMEM_LIB = gmemlib
   LIBRARY_VERSION := $(LIB_VERSION)