From ad1b85f7df9703af0cb0e3288f7558c1d14c0450 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 18 May 2019 18:24:08 -0400 Subject: 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. --- 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" -- cgit v0.9.1