A patch for top Makefile

H.J. Lu hjl@lucon.org
Wed Feb 10 20:52:00 GMT 1999


When RPATH_ENVVAR is empty, you get

	$(RPATH_ENVVAR)=$$r/bfd:$$r/opcodes:

where the trailing ':' means searching the current directory. That is
not intended. This patch fixes it.

Thanks.

-- 
H.J. Lu (hjl@gnu.org)
-- 
Wed Feb 10 20:44:05 1999  H.J. Lu  (hjl@gnu.org)

	* Makefile.in (REALLY_SET_LIB_PATH): Append $$$(RPATH_ENVVAR)
	only if it is not empty.

--- ../../import/egcs/Makefile.in	Tue Jul 14 07:05:34 1998
+++ ./Makefile.in	Wed Feb 10 20:10:44 1999
@@ -173,7 +173,11 @@
 
 # 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


More information about the Gcc-patches mailing list