commit: 7e8223ef7dcb6ad38c5fe5f8505e0e36ac75c56d
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 30 05:16:19 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jan 30 05:16:19 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e8223ef
dev-libs/libtommath: fix Darwin install
Package-Manager: Portage-3.0.14-prefix, Repoman-3.0.2
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-libs/libtommath/libtommath-1.2.0.ebuild | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dev-libs/libtommath/libtommath-1.2.0.ebuild
b/dev-libs/libtommath/libtommath-1.2.0.ebuild
index 78def9854c3..56b357a3505 100644
--- a/dev-libs/libtommath/libtommath-1.2.0.ebuild
+++ b/dev-libs/libtommath/libtommath-1.2.0.ebuild
@@ -65,6 +65,11 @@ src_test() {
src_install() {
_emake -f makefile.shared install
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ local path="usr/$(get_libdir)/libtommath.${PV}.dylib"
+ install_name_tool -id "${EPREFIX}/${path}" "${ED}/${path}" ||
die "Failed to adjust install_name"
+ fi
+
# We only link against -lc, so drop the .la file.
find "${ED}" -name '*.la' -delete || die
if ! use static-libs ; then