diff --git a/srcpkgs/gmp/template b/srcpkgs/gmp/template index ed11873f0f..f180b9ecbf 100644 --- a/srcpkgs/gmp/template +++ b/srcpkgs/gmp/template @@ -34,3 +34,11 @@ Add_dependency build m4 Add_dependency run libgcc Add_dependency run glibc Add_dependency run libstdc++ + +post_install() +{ + # Required for multilib build. + if grep -q "\-m32" ${DESTDIR}/usr/include/gmp.h; then + sed -i "s|\-m32 ||g" ${DESTDIR}/usr/include/gmp.h + fi +}