aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-02-05 21:40:24 +0000
committerIan Lance Taylor <ian@airs.com>1996-02-05 21:40:24 +0000
commit294fde1fd48896780fd5fb5a76c0e25818075675 (patch)
tree9943ea4a701d3203bd8909bd7af00149a8b2edc2 /configure.in
parent04ed3b54e05b155dd44cbfe73acc59c4d261b964 (diff)
downloadfsf-binutils-gdb-294fde1fd48896780fd5fb5a76c0e25818075675.zip
fsf-binutils-gdb-294fde1fd48896780fd5fb5a76c0e25818075675.tar.gz
fsf-binutils-gdb-294fde1fd48896780fd5fb5a76c0e25818075675.tar.bz2
* 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.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index fa78583..231994e 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}" | \