]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Makefile.in: Under darwin, build shared libraries with install_name starting with...
authorNicolas Setton <setton@adacore.com>
Fri, 17 Apr 2009 09:02:22 +0000 (09:02 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 17 Apr 2009 09:02:22 +0000 (11:02 +0200)
2009-04-17  Nicolas Setton  <setton@adacore.com>

* gcc-interface/Makefile.in: Under darwin, build shared libraries
with install_name starting with "@rpath/".

From-SVN: r146225

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

index b6f23cda79f2f0e6783c4effebc40aaec92bd27c..7f2cc5810596cd8e2f18887ca5f4476daf11f7a2 100644 (file)
@@ -1,3 +1,8 @@
+2009-04-17  Nicolas Setton  <setton@adacore.com>
+
+       * gcc-interface/Makefile.in: Under darwin, build shared libraries
+       with install_name starting with "@rpath/".
+
 2009-04-17  Pascal Obry  <obry@adacore.com>
 
        * adaint.h, argv.c (__gnat_init_args): New routine used to initialize
index 6358a39b775c48a314afdbf8f43e1e268da748d8..803383407bdfdc1cbad5b1a9fb5acaf86a04213e 100644 (file)
@@ -1887,7 +1887,8 @@ ifeq ($(strip $(filter-out darwin%,$(osys))),)
 
   EH_MECHANISM=-gcc
   GNATLIB_SHARED = gnatlib-shared-darwin
-  SO_OPTS = -Wl,-flat_namespace -shared-libgcc
+  SO_OPTS = -Wl,-flat_namespace -shared-libgcc \
+    -Wl,-install_name,@rpath/libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
   RANLIB = ranlib -c
   GMEM_LIB = gmemlib
   PREFIX_OBJS=$(PREFIX_REAL_OBJS)