summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-02-17 00:40:16 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-02-17 00:40:16 +0000
commitc441c977677db83248de0ba325dd0237f56ce01c (patch)
tree2729c3e4f88622e7f62d49755ac079b2d1fcada9 /Makefile.in
parent3e6a6fa8eb6f1b9cb75122f4e573468a643cfa8c (diff)
downloadgcc-c441c977677db83248de0ba325dd0237f56ce01c.tar.gz
* Makefile.in (REALLY_SET_LIB_PATH): Append $$$(RPATH_ENVVAR) only if it is not empty. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25258 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index f619e87abc6..79527fbdd64 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -187,7 +187,11 @@ RPATH_ENVVAR = LD_LIBRARY_PATH
# configure.in sets SET_LIB_PATH to this if --enable-shared was used.
REALLY_SET_LIB_PATH = \
- $(RPATH_ENVVAR)=$$r/bfd:$$r/opcodes:$$$(RPATH_ENVVAR); \
+ 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);
ALL = all.normal