From f70a0e85b9d22928b106e36f253507e9d851ce01 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 21 May 2010 00:53:29 +0200 Subject: [PATCH] gmp: fix gmp.h to not include -m32 in multilib builds. --- srcpkgs/gmp/template | 8 ++++++++ 1 file changed, 8 insertions(+) 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 +}