diff options
author | Bill Wendling <wendling@ncsa.uiuc.edu> | 2002-02-18 19:11:44 (GMT) |
---|---|---|
committer | Bill Wendling <wendling@ncsa.uiuc.edu> | 2002-02-18 19:11:44 (GMT) |
commit | 8c035746ccd41ce9a7ca7f54ef4ff3e2497a7b67 (patch) | |
tree | 46fad4792832ba396c2c138b0986ebe06d39f7f5 /bin | |
parent | cf16f383ecb8d22b1d880cf2dad5d6d2775b5398 (diff) | |
download | hdf5-8c035746ccd41ce9a7ca7f54ef4ff3e2497a7b67.zip hdf5-8c035746ccd41ce9a7ca7f54ef4ff3e2497a7b67.tar.gz hdf5-8c035746ccd41ce9a7ca7f54ef4ff3e2497a7b67.tar.bz2 |
[svn-r4987] Purpose:
Bug Fix
Description:
When doing an install of dynamic executables on some platforms, the
"mktemp" command may fail which causes the contents of "tmpdir" to go
away. If it's a failure, we still need the previous value of tmpdir.
Solution:
I replicated some code so that tmpdir's old value before the mktemp
call is regen'ed if the mktemp call failed.
Platforms tested:
HP-UX SysV
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ltmain.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/ltmain.sh b/bin/ltmain.sh index 00ca40b..f912832 100644 --- a/bin/ltmain.sh +++ b/bin/ltmain.sh @@ -3483,6 +3483,11 @@ libdir='$install_libdir'\ tmpdir=`mktemp -d $tmpdir/libtool-XXXXXX 2> /dev/null` if test $? = 0 ; then : else + ## HACK: Added the following two lines. The "mktemp" line + ## above overwrites "tmpdir" on a failure. So, we need to + ## regen the "tmpdir" value on a failure...Hence... + tmpdir="/tmp" + test -n "$TMPDIR" && tmpdir="$TMPDIR" tmpdir="$tmpdir/libtool-$$" fi if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then : |