distutils.unixccompiler: elif self._is_gcc(compiler): return "-Wl,-R" + dir else: return "-R" + dir It seems that bug 457716 causes pypy to use 'cc', thus not recognize the compiler as gcc and pass '-R' instead of '-Wl,-R'.
This should be fixed in pypy nowadays.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcfa42ebd72fbda1c401cb97c4a30fa7070c8c10 commit dcfa42ebd72fbda1c401cb97c4a30fa7070c8c10 Author: Marty E. Plummer <hanetzer@startmail.com> AuthorDate: 2018-04-28 00:23:29 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2018-04-29 10:29:48 +0000 dev-python/python-ldap: git-2->git-r3 Closes: https://bugs.gentoo.org/458558 Closes: https://github.com/gentoo/gentoo/pull/8176 Package-Manager: Portage-2.3.31, Repoman-2.3.9 .../python-ldap/python-ldap-2.4.19-r1.ebuild | 9 ++++++-- dev-python/python-ldap/python-ldap-2.4.32.ebuild | 12 +++++++--- dev-python/python-ldap/python-ldap-9999.ebuild | 26 +++++++++++++--------- 3 files changed, 32 insertions(+), 15 deletions(-)