summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-06-04 20:11:15 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-06-04 20:11:15 (EDT)
commit483993c24194cb4c3254e85fc81ed14fa60bb7a2 (patch)
treef48cc10b4f6288069ca1fad01855ea242f853f2f /build
parente8647d9ec7b7126f708da068184522751dbb23d1 (diff)
Also edit MULTILIB_OSDIRNAMES in target fragment.
The GCC Internals manual (gcc/doc/fragments.texi) says: > For configurations that support both multilib and multiarch, > MULTILIB_OSDIRNAMES also encodes the multiarch name, thus subsuming > MULTIARCH_DIRNAME. > [...] > > MULTIARCH_DIRNAME is not used for configurations that support both multilib > and multiarch. In that case, multiarch names are encoded in > MULTILIB_OSDIRNAMES instead. This sounds like the makefile macro used depends on the build-time user configuration; that is, the options --disable-multilib and --enable-multiarch should cause MULTIARCH_DIRNAME to be used. Instead, it seems MULTILIB_OSDIRNAMES is used, even if multilib is disabled. So apparently, "configurations that support both" means GCC target configurations that support both features, not build-time user configurations that enable them.
Diffstat (limited to 'build')
-rwxr-xr-xbuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/build b/build
index 5cb597b..580773f 100755
--- a/build
+++ b/build
@@ -82,6 +82,10 @@ $(build_targets): configure
sed "s|^\($${define_pattern}\) \".*\"$$|\1 \"$(elf_interp)\"|" \
"src/gcc/config/$${gcc_config_file}~" \
>"src/gcc/config/$${gcc_config_file}"; \
+ sed "$${gcc_config_fragment_script}" \
+ >"src/gcc/config/$${gcc_config_fragment}~"; \
+ mv "src/gcc/config/$${gcc_config_fragment}~" \
+ "src/gcc/config/$${gcc_config_fragment}"; \
printf '\nMULTIARCH_DIRNAME = %s\n' "$(target)" \
>>"src/gcc/config/$${gcc_config_fragment}"
if [ "x$(target)" = 'x$(OPK_HOST_ARCH)' ]; then \