aboutsummaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2018-09-28 13:32:59 -0700
committerGitHub <noreply@github.com>2018-09-28 13:32:59 -0700
commitd0dd654ca65029da8b30e2437a29c0934b7ecf80 (patch)
tree701785c1e51328cc05da10adabcc1bee03288914 /scripts/functions
parent5f18c3ed4e3af50f18985def9d7d1f640fd9577f (diff)
parent9d7c783a93dd4693a009aae5e99156c1f187acaf (diff)
downloadcrosstool-ng-d0dd654ca65029da8b30e2437a29c0934b7ecf80.tar.gz
crosstool-ng-d0dd654ca65029da8b30e2437a29c0934b7ecf80.tar.bz2
crosstool-ng-d0dd654ca65029da8b30e2437a29c0934b7ecf80.zip
Merge pull request #1038 from stilor/make-fix-glob
Fix make's glob() with new glibc
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/functions b/scripts/functions
index 2267a957..2e875f7f 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -2165,6 +2165,20 @@ CT_DoExtractPatch()
CT_DoExecLog ALL "${CT_CONFIG_SHELL}" -c "${devel_bootstrap}"
fi
+ # Fix up the timestamps on the file we may be patching: otherwise, we may
+ # have a circular dependency. For example, we need make to build autoconf
+ # and automake companion tools, but we need autoconf and automake to regenerate
+ # aclocal.m4 or config.h.in after the patch touches configure.ac. Instead,
+ # assume the patch fixes all the files it needs.
+ find . -type f -name "aclocal.m4" \
+ -exec touch {} \; -exec echo touch {} \; | CT_DoLog ALL
+ find . -type f -name "config.h.in" \
+ -exec touch {} \; -exec echo touch {} \; | CT_DoLog ALL
+ find . -type f -name "Makefile.in" \
+ -exec touch {} \; -exec echo touch {} \; | CT_DoLog ALL
+ find . -type f -name "configure" \
+ -exec touch {} \; -exec echo touch {} \; | CT_DoLog ALL
+
if [ -n "${patchfunc}" ]; then
${patchfunc}
fi