From: Gary V. Vaughan Date: Thu, 25 Mar 1999 08:58:47 +0000 (+0000) Subject: * ltmain.in ($PATH): Expand any tildes in the users path to the X-Git-Tag: release-1-3b~180 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85e85038a1be0e473bbad43261146bfc83258406;p=thirdparty%2Flibtool.git * ltmain.in ($PATH): Expand any tildes in the users path to the contents of $HOME to avoid problems with *_cmds splitting and evaluation. --- diff --git a/ChangeLog b/ChangeLog index a0ef98ef1..70ee10e73 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +1999-03-25 Gary V. Vaughan + + * ltmain.in ($PATH): Expand any tildes in the users path to the + contents of $HOME to avoid problems with *_cmds splitting and + evaluation. + 1999-03-24 Thomas Tanner * TODO: support -dlopen for libraries diff --git a/ltmain.in b/ltmain.in index 0d881ebdf..e53e7160d 100644 --- a/ltmain.in +++ b/ltmain.in @@ -90,6 +90,13 @@ if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then exit 1 fi +# A little paranoid perhaps... +[ "${HOME+set}" ] || HOME=`cd && pwd` + +# Apparently some people optimistically hardcode `~' in their path, and +# hope that their tools will interpret it correctly. We mustn't disappoint! +eval PATH=`echo "$PATH" | sed 's,^~/,$HOME/,;s,:~/,:$HOME/,g'` + # Global variables. mode=$default_mode nonopt=