summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-05-18 18:24:08 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-05-18 18:24:08 (EDT)
commitad1b85f7df9703af0cb0e3288f7558c1d14c0450 (patch)
tree62de7e1a9b7665a5c0f1a7aef5232262397db4ed
parentf790c73c44a8b0fefa073e4dc746b1764f691e14 (diff)
build: Use "#" in build-gcc-config command
POSIX suggests that "#" only delimits comments in macro definitions and at the beginnings of lines, but it isn't clear. GNU and NetBSD make implementations at least allow this.
-rwxr-xr-xbuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/build b/build
index 4fea037..640c96e 100755
--- a/build
+++ b/build
@@ -111,7 +111,7 @@ build-gcc-config:
# directory that other targets might also use, so backups are made.
[ -e "$(tm)/$(tm_file).orig" ] || \
mv "$(tm)/$(tm_file)" "$(tm)/$(tm_file).orig"
- sed "s|^\(.define $(tm_interp_macro)\) \".*\"$$|\1 \"$(elf_interp)\"|" \
+ sed "s|^\(#define $(tm_interp_macro)\) \".*\"$$|\1 \"$(elf_interp)\"|" \
"$(tm)/$(tm_file).orig" >"$(tm)/$(tm_file)"
[ -e "$(tm)/$(tmake_file).orig" ] || \
mv "$(tm)/$(tmake_file)" "$(tm)/$(tmake_file).orig"