1diff --git a/gcc/ada/gcc-interface/Makefile.in b/gcc/ada/gcc-interface/Makefile.in
2index 0666fc00b..0e2d53eb8 100644
3--- a/gcc/ada/gcc-interface/Makefile.in
4+++ b/gcc/ada/gcc-interface/Makefile.in
5@@ -793,14 +793,14 @@ gnatlib-shared-darwin:
6 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
7 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
8 $(SO_OPTS) \
9- -Wl,-install_name,@rpath/libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
10+ -Wl,-install_name,$(ADA_RTL_DSO_DIR)/libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
11 -nodefaultrpaths -Wl,-rpath,@loader_path/,-rpath,@loader_path/.. \
12 -Wl,-rpath,@loader_path/../../../../ $(MISCLIB)
13 cd $(RTSDIR); $(GCC_FOR_ADA_RTS) -dynamiclib $(PICFLAG_FOR_TARGET) \
14 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
15 $(GNATRTL_TASKING_OBJS) \
16 $(SO_OPTS) \
17- -Wl,-install_name,@rpath/libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
18+ -Wl,-install_name,$(ADA_RTL_DSO_DIR)/libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
19 -nodefaultrpaths -Wl,-rpath,@loader_path/,-rpath,@loader_path/.. \
20 -Wl,-rpath,@loader_path/../../../../ \
21 $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)