mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-18 20:37:56 +00:00
Allow multi-word "install" command.
Autoconf can determine that the correct install command includes flags, e.g., "/usr/bin/install -c". When using this as a command, we can't enclose the value in double-quotes, as that makes some shells use the whole expression as a filename: # this is the value returned by autoconf and stored in CT_install $ ins="/usr/bin/install -c" # if we call it with quotes, the command is not found $ "${ins}" bash: /usr/bin/install -c: No such file or directory # removing the quotes lets it work as expected $ ${ins} /usr/bin/install: missing file operand Try `/usr/bin/install --help' for more information. Signed-Off-By: Anthony Foiani <anthony.foiani@gmail.com>
This commit is contained in:
parent
4ffc66613f
commit
e9cb0c788c
@ -205,7 +205,7 @@ do_add_lib() {
|
||||
*) mode=0644;;
|
||||
esac
|
||||
${CT_PRINTF} " installing as '%s/%s', mode='%s'\n" "${dir}" "${true_libname}" "${mode}"
|
||||
"${install}" -m "${mode}" "${libfile}" "${dir}/${true_libname}"
|
||||
${install} -m "${mode}" "${libfile}" "${dir}/${true_libname}"
|
||||
do_resolve_deps "${dir}/${true_libname}"
|
||||
return 0
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user