aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2004-11-04 17:07:08 +0000
committerH.J. Lu <hjl.tools@gmail.com>2004-11-04 17:07:08 +0000
commit02b1af09c753b64e4ea797f682a19beed96278b6 (patch)
tree08c345b82b68786d889283d91091a8159a33c881 /configure.in
parent7f266840a2d8b06c27f445ef67f0693c0d1b2496 (diff)
downloadgdb-02b1af09c753b64e4ea797f682a19beed96278b6.zip
gdb-02b1af09c753b64e4ea797f682a19beed96278b6.tar.gz
gdb-02b1af09c753b64e4ea797f682a19beed96278b6.tar.bz2
2004-11-04 H.J. Lu <hongjiu.lu@intel.com>
PR other/17783 * configure.in: Set up LD_LIBRARY_PATH by default for gcc. * configure: Regenerated.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in23
1 files changed, 19 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index cd4ee03..f0121a6 100644
--- a/configure.in
+++ b/configure.in
@@ -1647,10 +1647,25 @@ case "${host}" in
;;
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
# binutils tools will find libbfd.so.
-case "${enable_shared}" in
- no | "") SET_LIB_PATH= ;;
+case "${set_lib_path}" in
+ no) SET_LIB_PATH= ;;
*) SET_LIB_PATH="\$(REALLY_SET_LIB_PATH)" ;;
esac
@@ -2328,8 +2343,8 @@ AC_SUBST(stage2_werror_flag)
# used.
SET_GCC_LIB_PATH=
if test -d ${srcdir}/gcc && test x${is_cross_compiler} = xno; then
- case "${enable_shared}" in
- no | "") ;;
+ case "${set_lib_path}" in
+ no) ;;
*)
eval "d=\$$RPATH_ENVVAR"
if test x"$d" != x; then