diff --git a/base/binutils/binutils.conf b/base/binutils/binutils.conf index 21af4d966..e51fc68d1 100644 --- a/base/binutils/binutils.conf +++ b/base/binutils/binutils.conf @@ -15,6 +15,12 @@ hook_add preconf 5 "mkdir -p objdir; cd objdir; configscript=../configure" +if [ "$SDECFG_MULTILIB" != 1 ]; then + var_append extraconfopt ' ' "--disable-multilib" +else + var_append extraconfopt ' ' "--enable-multilib" +fi + if atstage toolchain; then bindir="/$prefix/crosscc"; mkdir -p $root/$prefix/crosscc var_append confopt " " "--with-sysroot=$sysroot"