* configure.in: If --enable-shared was used, set SET_LIB_PATH to
authorIan Lance Taylor <ian@airs.com>
Mon, 5 Feb 1996 21:40:24 +0000 (21:40 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 5 Feb 1996 21:40:24 +0000 (21:40 +0000)
$(REALLY_SET_LIB_PATH) in Makefile.
* Makefile.in (SET_LIB_PATH): New variable.
(REALLY_SET_LIB_PATH): New variable.
($(DO_X)): Use $(SET_LIB_PATH).
(install.all, gcc-no-fixedincludes, $(ALL_MODULES)): Likewise.
($(NATIVE_CHECK_MODULES), $(CROSS_CHECK_MODULES)): Likewise.
($(INSTALL_MODULES), $(CONFIGURE_TARGET_MODULES)): Likewise.
($(ALL_TARGET_MODULES), $(CHECK_TARGET_MODULES)): Likewise.
($(INSTALL_TARGET_MODULES), $(ALL_X11_MODULES)): Likewise.
($(CHECK_X11_MODULES), $(INSTALL_X11_MODULES)): Likewise.
(all-gcc, all-bootstrap, check-gcc, install-gcc): Likewise.
(install-dosrel): Likewise.
(all-opcodes): Depend upon all-libiberty.

configure.in

index fa78583ddd827178b6c5a4839826a6b3e1c00bd9..231994e23d9c7ef94d6d27ef75cdf772d7b3cd8e 100644 (file)
@@ -706,6 +706,15 @@ else
 fi
 rm -f conftest*
 
+# If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
+# binutils tools will find libbfd.so.
+if [ "${enable_shared}" = "yes" ]; then
+  sed -e 's/^SET_LIB_PATH[     ]*=.*$/SET_LIB_PATH = $(REALLY_SET_LIB_PATH)/' \
+      Makefile > Makefile.tem
+  rm -f Makefile
+  mv -f Makefile.tem Makefile
+fi
+
 # Record target_configdirs and the configure arguments in Makefile.
 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
 targargs=`echo "${arguments}" | \