aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2000-11-18 20:58:43 +0000
committerAlexandre Oliva <aoliva@redhat.com>2000-11-18 20:58:43 +0000
commit0da520102dc4d27ec5b85987c2bdfc2b0b2b8f09 (patch)
tree6e0de4bdcfa7d4714d840dc644e1d24273acdac0 /Makefile.in
parentfec7d8b0e7ca818c0015f620a4e05ea8357da738 (diff)
downloadgdb-0da520102dc4d27ec5b85987c2bdfc2b0b2b8f09.zip
gdb-0da520102dc4d27ec5b85987c2bdfc2b0b2b8f09.tar.gz
gdb-0da520102dc4d27ec5b85987c2bdfc2b0b2b8f09.tar.bz2
* Makefile.in (HOST_LIB_PATH, TARGET_LIB_PATH): New macros.
(REALLY_SET_LIB_PATH): Use them.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in17
1 files changed, 11 insertions, 6 deletions
diff --git a/Makefile.in b/Makefile.in
index 68b421b..7dbe789 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -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 \