This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[toplevel] Set RPATH_ENVVAR on Darwin


While trying to do some more testing on my "Clean up setting of LD_LIBRARY_PATH" patch (http://gcc.gnu.org/ml/gcc-patches/2005-02/msg01800.html), I found that the situation in PR17369 can also apply to Darwin on mainline. This latent bug was unveiled by the recent change to run gcj-dbtool as part of making libjava: while failure to run gcj-dbtool is not causing bootstrap to fail, still it causes an annoying message,

gcj-dbtool: error while loading shared libraries: cannot open /usr/local/lib/libgcc_s.1.0.dylib

This patch fixes the problem. Ok for gcc and src with the aforementioned patch? Ok for gcc 4.0 without it?

Paolo
2005-02-23  Paolo Bonzini  <bonzini@gnu.org>

	* configure.in (RPATH_ENVVAR): Set to DYLD_LIBRARY_PATH
	on Darwin.

Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/configure.in,v
retrieving revision 1.344
diff -p -u -r1.344 configure.in
--- configure.in	21 Mar 2005 18:27:04 -0000	1.344
+++ configure.in	23 Mar 2005 08:28:44 -0000
@@ -1649,6 +1628,7 @@
 
 case "${host}" in
   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
+  *-*-darwin* | *-*-rhapsody*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
 esac
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]