* m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER): better quoting for

postinstall_cmds and postuninstall_cmds to allow spaces in install
paths.
This commit is contained in:
Charles Wilson 2004-09-22 08:11:49 +00:00 committed by Gary V. Vaughan
parent 1ab797d98d
commit 8bf60ee1c8
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,9 @@
2004-09-22 Charles Wilson <cwilson@spam.protected>
* m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER): better quoting for
postinstall_cmds and postuninstall_cmds to allow spaces in install
paths.
* config/ltmain.in (func_generate_dlsyms): Addresses in
_preloaded_symbols[] cannot go into .rdata section if symbols are
DATA imported from DLL, on windows, because runtime relocations

4
m4/libtool.m4 vendored
View File

@ -1714,11 +1714,11 @@ cygwin* | mingw* | pw32*)
library_names_spec='$libname.dll.a'
# DLL is installed to $(libdir)/../bin by postinstall_cmds
postinstall_cmds='base_file=`basename \${file}`~
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
dlpath=`$SHELL 2>&1 -c '\'\\\'\''. $dir/'\'\\\'\''\${base_file}'\'\\\'\''i;echo \$dlname'\'\\\'\''`~
dldir=$destdir/`dirname \$dlpath`~
test -d \$dldir || mkdir -p \$dldir~
$install_prog $dir/$dlname \$dldir/$dlname'
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\'\\\'\''. $file; echo \$dlname'\'\\\'\''`~
dlpath=$dir/\$dldll~
$rm \$dlpath'
shlibpath_overrides_runpath=yes