mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-06-23 01:08:51 +00:00
config.sub/config.guess must either be executable
or be run through shell Signed-off-by: Alexey Neyman <stilor@att.net>
This commit is contained in:
@ -986,17 +986,17 @@ CT_GetFile()
|
||||
# Those from CT_TOP_DIR, if they exist, will be be more recent than those from CT_LIB_DIR.
|
||||
CT_DoConfigGuess() {
|
||||
if [ -x "${CT_TOP_DIR}/scripts/config.guess" ]; then
|
||||
"${CT_TOP_DIR}/scripts/config.guess"
|
||||
"${CT_CONFIG_SHELL}" "${CT_TOP_DIR}/scripts/config.guess"
|
||||
else
|
||||
"${CT_LIB_DIR}/scripts/config.guess"
|
||||
"${CT_CONFIG_SHELL}" "${CT_LIB_DIR}/scripts/config.guess"
|
||||
fi
|
||||
}
|
||||
|
||||
CT_DoConfigSub() {
|
||||
if [ -x "${CT_TOP_DIR}/scripts/config.sub" ]; then
|
||||
"${CT_TOP_DIR}/scripts/config.sub" "$@"
|
||||
"${CT_CONFIG_SHELL}" "${CT_TOP_DIR}/scripts/config.sub" "$@"
|
||||
else
|
||||
"${CT_LIB_DIR}/scripts/config.sub" "$@"
|
||||
"${CT_CONFIG_SHELL}" "${CT_LIB_DIR}/scripts/config.sub" "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user