diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template index a35615318c8..68c2dfe9587 100644 --- a/srcpkgs/binutils/template +++ b/srcpkgs/binutils/template @@ -40,4 +40,10 @@ post_install() # Remove info file that conflicts with autoconf. rm -f ${DESTDIR}/usr/share/info/standards.info rm -f ${DESTDIR}/usr/lib64 + + # Fix for multilib builds. + if [ -d ${DESTDIR}/usr/lib32 ]; then + mv ${DESTDIR}/usr/lib32/* ${DESTDIR}/usr/lib || return 1 + rmdir ${DESTDIR}/usr/lib32 + fi }