aboutsummaryrefslogtreecommitdiff
path: root/fixincludes/ChangeLog
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@adacore.com>2020-02-20 22:09:03 -0300
committerAlexandre Oliva <oliva@gnu.org>2020-02-20 22:09:03 -0300
commitafbffe08646f0fce346a2e3525474e498a9051fa (patch)
treeadb195723823f4b6962d44e06fe6175c4aca54f5 /fixincludes/ChangeLog
parent33fe984aca4d12013bbd5921eee393c66dc1cfaa (diff)
downloadgcc-afbffe08646f0fce346a2e3525474e498a9051fa.zip
gcc-afbffe08646f0fce346a2e3525474e498a9051fa.tar.gz
gcc-afbffe08646f0fce346a2e3525474e498a9051fa.tar.bz2
Allow CONFIG_SHELL to override build-time shell in mkheaders
mkheaders.in uses substitutions of @SHELL@ to run fixinc.sh and mkinstalldirs. Problem is, SHELL comes from CONFIG_SHELL for the build system, and it needs not match whatever is available at an unrelated host system after installation, when mkheaders is supposed to be run. I considered ditching the hardcoding altogether, but decided to retain it, but allowing CONFIG_SHELL and SHELL to override it, if any of them can successfully run mkinstalldirs, and if those and the substituted @SHELL@ fail, fallback to /bin/sh and to plain execution of the script, which appears to enable at least one shell on a system that doesn't typicall have a shell to recognize a script by #!/bin/sh and reinvoke itself to run it. If all of these fail, we fail, but only after telling the user to retry after setting CONFIG_SHELL, that fixincl itself also uses. for fixincludes/ChangeLog * mkheaders.in: Don't require build-time shell on host.
Diffstat (limited to 'fixincludes/ChangeLog')
-rw-r--r--fixincludes/ChangeLog4
1 files changed, 4 insertions, 0 deletions
diff --git a/fixincludes/ChangeLog b/fixincludes/ChangeLog
index 5b3d9ae..3f93053 100644
--- a/fixincludes/ChangeLog
+++ b/fixincludes/ChangeLog
@@ -1,3 +1,7 @@
+2020-02-20 Alexandre Oliva <oliva@adacore.com>
+
+ * mkheaders.in: Don't require build-time shell on host.
+
2020-02-13 Matheus Castanho <msc@linux.ibm.com>
* fixinc.in: Skip machine_name fix on powerpc*-*-linux*.