1--- a/gcc/ada/gcc-interface/Makefile.in
2+++ b/gcc/ada/gcc-interface/Makefile.in
3@@ -788,13 +788,13 @@ gnatlib-shared-darwin:
4 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
5 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
6 $(SO_OPTS) \
7- -Wl,-install_name,@rpath/libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
8+ -Wl,-install_name,$(ADA_RTL_DSO_DIR)/libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
9 $(MISCLIB)
10 cd $(RTSDIR); $(GCC_FOR_ADA_RTS) -dynamiclib $(PICFLAG_FOR_TARGET) \
11 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
12 $(GNATRTL_TASKING_OBJS) \
13 $(SO_OPTS) \
14- -Wl,-install_name,@rpath/libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
15+ -Wl,-install_name,$(ADA_RTL_DSO_DIR)/libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
16 $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
17 cd $(RTSDIR); $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
18 libgnat$(soext)