From 2f0ffe6d1a079288d1bc01b668230509c6ce8635 Mon Sep 17 00:00:00 2001 From: charlet Date: Wed, 29 Apr 2009 09:11:35 +0000 Subject: [PATCH] 2009-04-29 Nicolas Setton * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on darwin. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146930 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ada/ChangeLog | 5 +++++ gcc/ada/gcc-interface/Makefile.in | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 46ae18aea163..d798092a1956 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2009-04-29 Nicolas Setton + + * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on + darwin. + 2009-04-25 Eric Botcazou * gcc-interface/decl.c (gnat_to_gnu_entity) : Put diff --git a/gcc/ada/gcc-interface/Makefile.in b/gcc/ada/gcc-interface/Makefile.in index 31f0a7b45c91..c19c09959418 100644 --- a/gcc/ada/gcc-interface/Makefile.in +++ b/gcc/ada/gcc-interface/Makefile.in @@ -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) \ -- 2.47.2