summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild3
1 files changed, 2 insertions, 1 deletions
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 \