diff --git a/dev-libs/libtommath/libtommath-1.2.0-r1.ebuild b/dev-libs/libtommath/libtommath-1.2.0-r2.ebuild similarity index 94% rename from dev-libs/libtommath/libtommath-1.2.0-r1.ebuild rename to dev-libs/libtommath/libtommath-1.2.0-r2.ebuild index 7b117347f4e7d..02a55d1fc6fef 100644 --- a/dev-libs/libtommath/libtommath-1.2.0-r1.ebuild +++ b/dev-libs/libtommath/libtommath-1.2.0-r2.ebuild @@ -57,6 +57,9 @@ _emake() { } src_compile() { + # Replace hard-coded libdir=${exec_prefix}/lib. + sed -i -e "/libdir=/s:/lib:/$(get_libdir):" libtommath.pc.in || die + _emake -f makefile.shared }