gmp: fix gmp.h to not include -m32 in multilib builds.

This commit is contained in:
Juan RP 2010-05-21 00:53:29 +02:00
parent 9408af3761
commit f70a0e85b9

View file

@ -34,3 +34,11 @@ Add_dependency build m4
Add_dependency run libgcc Add_dependency run libgcc
Add_dependency run glibc Add_dependency run glibc
Add_dependency run libstdc++ 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
}