summaryrefslogtreecommitdiff
path: root/scripts/crosstool-NG.sh.in
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-01-22 22:20:18 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-01-22 22:20:18 (GMT)
commit7e64cef4b4a45c4ef4d27ad90571738870679b30 (patch)
treec4b9ab51becc7db38720cc8d6db11bf92ef57372 /scripts/crosstool-NG.sh.in
parent74943860467a2b7f7d7a34c856a437fb06e84f70 (diff)
scripts: create the makeinfo wrapper before we set PATH
If we set PATH to the tools wrappers before we create the makeinfo wrapper, then we may well wrap an existing wrapper from a previous run. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'scripts/crosstool-NG.sh.in')
-rw-r--r--scripts/crosstool-NG.sh.in14
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in
index 9273e4c..14477c0 100644
--- a/scripts/crosstool-NG.sh.in
+++ b/scripts/crosstool-NG.sh.in
@@ -472,6 +472,13 @@ if [ -z "${CT_RESTART}" ]; then
done
done
+ # Some makeinfo versions are a pain in [put your most sensible body part here].
+ # Go ahead with those, by creating a wrapper that keeps partial files, and that
+ # never fails:
+ CT_DoLog DEBUG " 'makeinfo' -> '$(CT_Which makeinfo)'"
+ printf "#${BANG}${CT_SHELL}\n$(CT_Which makeinfo) --force \"\${@}\"\ntrue\n" >"${CT_PREFIX_DIR}/buildtools/makeinfo"
+ CT_DoExecLog ALL chmod 700 "${CT_PREFIX_DIR}/buildtools/makeinfo"
+
# Carefully add paths in the order we want them:
# - first try in ${CT_PREFIX_DIR}/bin
# - then try in ${CT_CC_CORE_SHARED_PREFIX_DIR}/bin
@@ -485,13 +492,6 @@ if [ -z "${CT_RESTART}" ]; then
*) ;;
esac
- # Some makeinfo versions are a pain in [put your most sensible body part here].
- # Go ahead with those, by creating a wrapper that keeps partial files, and that
- # never fails:
- CT_DoLog DEBUG " 'makeinfo' -> '$(CT_Which makeinfo)'"
- printf "#${BANG}${CT_SHELL}\n$(CT_Which makeinfo) --force \"\${@}\"\ntrue\n" >"${CT_PREFIX_DIR}/buildtools/makeinfo"
- CT_DoExecLog ALL chmod 700 "${CT_PREFIX_DIR}/buildtools/makeinfo"
-
# Help gcc
CT_CFLAGS_FOR_HOST=
[ "${CT_USE_PIPES}" = "y" ] && CT_CFLAGS_FOR_HOST="${CT_CFLAGS_FOR_HOST} -pipe"