diff options
| author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-11-18 20:55:40 +0000 |
|---|---|---|
| committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-11-18 20:55:40 +0000 |
| commit | 5cfbc08c2d0368a5ff2f4a7b15cbf11bc5b6c50b (patch) | |
| tree | 471abbc366f77f1809569a31aac8e8d783916fe2 | |
| parent | 14a92a8947ed2a440447b7b603e79372c0e3c6f6 (diff) | |
| download | ppe42-gcc-5cfbc08c2d0368a5ff2f4a7b15cbf11bc5b6c50b.tar.gz ppe42-gcc-5cfbc08c2d0368a5ff2f4a7b15cbf11bc5b6c50b.zip | |
* Makefile.in (HOST_LIB_PATH, TARGET_LIB_PATH): New macros.
(REALLY_SET_LIB_PATH): Use them.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37545 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | Makefile.in | 17 |
2 files changed, 16 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog index 9ab0376e00e..2cc20aa1b41 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-11-18 Alexandre Oliva <aoliva@redhat.com> + + * Makefile.in (HOST_LIB_PATH, TARGET_LIB_PATH): New macros. + (REALLY_SET_LIB_PATH): Use them. + 2000-11-17 Stan Shebs <shebs@apple.com> * MAINTAINERS: Add self to Write After Approval list. diff --git a/Makefile.in b/Makefile.in index ed03a5d9f9a..07ebe3f5fb4 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 \ |

