From 5309f98deb6ae81022dc6b839e234636f49cb525 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 18 May 2019 20:03:39 -0400 Subject: build: Add/move comments in build-gcc-config --- (limited to 'build') diff --git a/build b/build index 411ee36..5b55cfe 100755 --- a/build +++ b/build @@ -117,11 +117,12 @@ configure-native configure-cross: # once per target, but they modify files in the src/ directory that other # targets might also use, so backups are made. build-gcc-config: - # Set the default dynamic linker path inserted into ELF INTERP fields. [ -e "$(tm)/$(tm_file).orig" ] || \ mv "$(tm)/$(tm_file)" "$(tm)/$(tm_file).orig" + # Set the default dynamic linker path inserted into ELF INTERP fields. sed "s|^\(#define $(tm_interp_macro)\) \".*\"$$|\1 \"$(elf_interp)\"|" \ "$(tm)/$(tm_file).orig" >"$(tm)/$(tm_file)" + # Set macros for executable and startup(/library) file prefixes. printf '\n#undef %s\n#define %s "%s"\n' STANDARD_EXEC_PREFIX \ STANDARD_EXEC_PREFIX "$(tgtlibdir)/" >>"$(tm)/$(tm_file)" printf '\n#undef %s\n#define %s "%s"\n' STANDARD_LIBEXEC_PREFIX \ -- cgit v0.9.1