aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada
diff options
context:
space:
mode:
authorNicolas Setton <setton@adacore.com>2009-04-29 09:11:35 +0000
committerArnaud Charlet <charlet@gcc.gnu.org>2009-04-29 11:11:35 +0200
commit059caa3e91991b39866b6fa22bc69836ae9a9013 (patch)
treebad8b009a6d6885cabbfa0a10836e1da297d544a /gcc/ada
parenta0a31d1ec37ab838b1cbad2bb3a502c2927667b1 (diff)
downloadgcc-059caa3e91991b39866b6fa22bc69836ae9a9013.zip
gcc-059caa3e91991b39866b6fa22bc69836ae9a9013.tar.gz
gcc-059caa3e91991b39866b6fa22bc69836ae9a9013.tar.bz2
Makefile.in: Produce .dSYM files for shared libs on darwin.
2009-04-29 Nicolas Setton <setton@adacore.com> * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on darwin. From-SVN: r146930
Diffstat (limited to 'gcc/ada')
-rw-r--r--gcc/ada/ChangeLog5
-rw-r--r--gcc/ada/gcc-interface/Makefile.in8
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog
index 46ae18a..d798092 100644
--- a/gcc/ada/ChangeLog
+++ b/gcc/ada/ChangeLog
@@ -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
diff --git a/gcc/ada/gcc-interface/Makefile.in b/gcc/ada/gcc-interface/Makefile.in
index 31f0a7b..c19c099 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) \