Commit ee6a22df by H.J. Lu

Update configure.in/configure.

From-SVN: r90068
parent bab37580
...@@ -1653,10 +1653,25 @@ case "${host}" in ...@@ -1653,10 +1653,25 @@ case "${host}" in
;; ;;
esac esac
# If no --enable-shared nor --disable-shared is specified, we set up
# LD_LIBRARY_PATH when we build for gcc.
case $enable_shared in
"")
if test -d ${srcdir}/gcc; then
set_lib_path=yes
else
set_lib_path=no
fi
;;
*)
set_lib_path=$enable_shared
;;
esac
# If --enable-shared was set, we must set LD_LIBRARY_PATH so that the # If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
# binutils tools will find libbfd.so. # binutils tools will find libbfd.so.
case "${enable_shared}" in case "${set_lib_path}" in
no | "") SET_LIB_PATH= ;; no) SET_LIB_PATH= ;;
*) SET_LIB_PATH="\$(REALLY_SET_LIB_PATH)" ;; *) SET_LIB_PATH="\$(REALLY_SET_LIB_PATH)" ;;
esac esac
...@@ -2334,8 +2349,8 @@ AC_SUBST(stage2_werror_flag) ...@@ -2334,8 +2349,8 @@ AC_SUBST(stage2_werror_flag)
# used. # used.
SET_GCC_LIB_PATH= SET_GCC_LIB_PATH=
if test -d ${srcdir}/gcc && test x${is_cross_compiler} = xno; then if test -d ${srcdir}/gcc && test x${is_cross_compiler} = xno; then
case "${enable_shared}" in case "${set_lib_path}" in
no | "") ;; no) ;;
*) *)
eval "d=\$$RPATH_ENVVAR" eval "d=\$$RPATH_ENVVAR"
if test x"$d" != x; then if test x"$d" != x; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment