+Mon Jun 19 13:38:27 EDT 1995 Paul Park (pjpark@mit.edu)
+ * default.exp - Fix setup_root_shell() with LD_LIBRARY_PATH.
+
Thu Jun 15 18:13:55 EDT 1995 Paul Park (pjpark@mit.edu)
* default.exp - Setup and use LD_LIBRARY_PATH, in case we were built
with shared libraries.
verbose "KERBEROS_SERVER=$env(KERBEROS_SERVER)"
# Tell the dynamic loader where to get our shared libraries
- set env(LD_LIBRARY_PATH) "$SHLIBDIR"
+ if [info exists env(LD_LIBRARY_PATH)] {
+ set oldpath $env(LD_LIBRARY_PATH)
+ set env(LD_LIBRARY_PATH) "$SHLIBDIR $env(LD_LIBRARY_PATH)"
+ } else {
+ catch "unset oldpath"
+ set env(LD_LIBRARY_PATH) "$SHLIBDIR"
+ }
verbose "LD_LIBRARY_PATH=$env(LD_LIBRARY_PATH)"
return 1
}
global rlogin_pid
global tmppwd
global env
+ global SHLIBDIR
# Make sure we are using the original values of the environment
# variables. This means that the caller must call
restore_kerberos_env
+ # Tell the dynamic loader where to get our shared libraries
+ if [info exists env(LD_LIBRARY_PATH)] {
+ set oldpath $env(LD_LIBRARY_PATH)
+ set env(LD_LIBRARY_PATH) "$SHLIBDIR $env(LD_LIBRARY_PATH)"
+ } else {
+ catch "unset oldpath"
+ set env(LD_LIBRARY_PATH) "$SHLIBDIR"
+ }
+ verbose "LD_LIBRARY_PATH=$env(LD_LIBRARY_PATH)"
+
if ![get_hostname] {
return 0
}
}
}
+ # Restore old setting of LD_LIBRARY_PATH
+ if [info exists oldpath] {
+ set env(LD_LIBRARY_PATH) $oldpath
+ catch "unset oldpath"
+ } else {
+ catch "unset env(LD_LIBRARY_PATH)"
+ }
expect_after
return 1