* Makefile.in (HOST_LIB_PATH, TARGET_LIB_PATH): New macros.
authorAlexandre Oliva <aoliva@redhat.com>
Sat, 18 Nov 2000 20:58:43 +0000 (20:58 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Sat, 18 Nov 2000 20:58:43 +0000 (20:58 +0000)
(REALLY_SET_LIB_PATH): Use them.

ChangeLog
Makefile.in

index 9e3f7890f2181b93f65585505695c8585e8a2bb5..10edead81b6874f2c2468e27c43df3880d81e23a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Nov 18 18:57:50 2000  Alexandre Oliva  <aoliva@redhat.com>
+
+       * Makefile.in (HOST_LIB_PATH, TARGET_LIB_PATH): New macros.
+       (REALLY_SET_LIB_PATH): Use them.
+
 Mon Nov  6 14:19:35 2000  Christopher Faylor <cgf@cygnus.com>
 
        * config.sub: Add support for Sun Chorus
index 68b421bfa2197ff3b0aea93827f626162df7b830..7dbe789a5063acf1423ac8613571204449f0c589 100644 (file)
@@ -186,14 +186,19 @@ SET_LIB_PATH =
 # the libraries.  This may be changed by configure.in.
 RPATH_ENVVAR = LD_LIBRARY_PATH
 
+# This is the list of directories that may be needed in RPATH_ENVVAR
+# so that programs built for the host machine work.
+HOST_LIB_PATH = $$r/bfd:$$r/opcodes
+
+# This is the list of directories that may be needed in RPATH_ENVVAR
+# so that prorgams built for the target machine work.
+TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:$$r/$(TARGET_SUBDIR)/libstdc++
+
 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
+# Some platforms don't like blank entries, so we remove duplicate,
+# leading and trailing colons.
 REALLY_SET_LIB_PATH = \
-  if [ x"$$$(RPATH_ENVVAR)" != x ]; then \
-    $(RPATH_ENVVAR)=$$r/bfd:$$r/opcodes:$$$(RPATH_ENVVAR); \
-  else \
-    $(RPATH_ENVVAR)=$$r/bfd:$$r/opcodes; \
-  fi; \
-  export $(RPATH_ENVVAR);
+  $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
 
 ALL = all.normal
 INSTALL_TARGET = installdirs \
This page took 0.028888 seconds and 4 git commands to generate.