Makefile.in: Produce .dSYM files for shared libs on darwin.
authorNicolas Setton <setton@adacore.com>
Wed, 29 Apr 2009 09:11:35 +0000 (09:11 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 29 Apr 2009 09:11:35 +0000 (11:11 +0200)
2009-04-29  Nicolas Setton  <setton@adacore.com>

* gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
darwin.

From-SVN: r146930

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

index 46ae18aea16304f5b64a39e90550cb088ed2e255..d798092a195635518f67fb4935f37bf7b3e1071c 100644 (file)
@@ -1,3 +1,8 @@
+2009-04-29  Nicolas Setton  <setton@adacore.com>
+
+       * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
+       darwin.
+
 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
index 31f0a7b45c91a58e09b17b14e5a93f21b3253aa3..c19c09959418d037d8c642ee7c5ec00f3fe112fd 100644 (file)
@@ -2081,6 +2081,8 @@ install-gnatlib: ../stamp-gnatlib-$(RTSDIR)
 #     of $(INSTALL_DATA). The latter may force a mode inappropriate
 #     for shared libraries on some targets, e.g. on HP-UX where the x
 #     permission is required.
+#     Also install the .dSYM directories if they exist (these directories
+#     contain the debug information for the shared libraries on darwin)
        for file in gnat gnarl; do \
           if [ -f $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) ]; then \
              $(INSTALL) $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
@@ -2090,6 +2092,10 @@ install-gnatlib: ../stamp-gnatlib-$(RTSDIR)
              $(LN_S) lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
              $(DESTDIR)$(ADA_RTL_OBJ_DIR)/lib$${file}$(soext); \
           fi; \
+          if [ -d rts/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext).dSYM ]; then \
+             $(CP) -r rts/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext).dSYM \
+               $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
+          fi; \
        done
 # This copy must be done preserving the date on the original file.
        for file in $(RTSDIR)/*.ad?; do \
@@ -2297,6 +2303,8 @@ gnatlib-shared-darwin:
                libgnat$(soext)
        cd $(RTSDIR); $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
                libgnarl$(soext)
+       cd rts; dsymutil libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
+       cd rts; dsymutil libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext)
 
 gnatlib-shared-vms:
        $(MAKE) $(FLAGS_TO_PASS) \