aboutsummaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2018-03-17 22:19:45 -0700
committerAlexey Neyman <stilor@att.net>2018-04-07 12:03:17 -0700
commitbc542408ca3c74e977e4f30d77ae6b9a6f388cbe (patch)
tree83bb0cdff34f5c053a1870c3612bedfbba423e15 /scripts/functions
parent5159cd7bc070a4fbf013e6c8c259ccb8ef391b0d (diff)
downloadcrosstool-ng-bc542408ca3c74e977e4f30d77ae6b9a6f388cbe.tar.gz
crosstool-ng-bc542408ca3c74e977e4f30d77ae6b9a6f388cbe.tar.bz2
crosstool-ng-bc542408ca3c74e977e4f30d77ae6b9a6f388cbe.zip
config.sub/config.guess must either be executable
or be run through shell Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/functions b/scripts/functions
index 9440f0e3..62966fd2 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -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
}