From: Ian Lance Taylor Date: Mon, 5 Feb 1996 21:40:24 +0000 (+0000) Subject: * configure.in: If --enable-shared was used, set SET_LIB_PATH to X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=294fde1fd48896780fd5fb5a76c0e25818075675;p=binutils-gdb.git * configure.in: If --enable-shared was used, set SET_LIB_PATH to $(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. --- diff --git a/configure.in b/configure.in index fa78583ddd8..231994e23d9 100644 --- a/configure.in +++ b/configure.in @@ -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}" | \