summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rwxr-xr-xbuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/build b/build
index 1d94683..5cb597b 100755
--- a/build
+++ b/build
@@ -30,6 +30,7 @@ common_opts = \
--enable-linker-build-id \
--with-system-zlib \
--disable-multilib \
+ --enable-multiarch \
--without-included-gettext \
--with-nls \
--with-sysroot="$${OPK_SYSROOT:-/}" \
@@ -80,7 +81,9 @@ $(build_targets): configure
define_pattern=".define $${gcc_config_interp_macro}"; \
sed "s|^\($${define_pattern}\) \".*\"$$|\1 \"$(elf_interp)\"|" \
"src/gcc/config/$${gcc_config_file}~" \
- >"src/gcc/config/$${gcc_config_file}"
+ >"src/gcc/config/$${gcc_config_file}"; \
+ printf '\nMULTIARCH_DIRNAME = %s\n' "$(target)" \
+ >>"src/gcc/config/$${gcc_config_fragment}"
if [ "x$(target)" = 'x$(OPK_HOST_ARCH)' ]; then \
$(MAKE) -f ../build "buildnative-$(target)"; \
else \