commit:     623d4ab26471435828adb197d675568b9212af47
Author:     François Bissey <frp.bissey <AT> gmail <DOT> com>
AuthorDate: Sat Jun 27 08:51:47 2020 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Sun Jun 28 11:44:09 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=623d4ab2

sci-mathematics/pari: unset LD at configuration time

Package-Manager: Portage-2.3.99, Repoman-2.3.23
Closes: https://bugs.gentoo.org/722090
Closes: https://github.com/gentoo/gentoo/pull/16445
Signed-off-by: François René Pierre Bissey <frp.bissey <AT> gmail.com>
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 sci-mathematics/pari/pari-2.11.4.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sci-mathematics/pari/pari-2.11.4.ebuild 
b/sci-mathematics/pari/pari-2.11.4.ebuild
index 8dc1c90f6f0..2d485e21564 100644
--- a/sci-mathematics/pari/pari-2.11.4.ebuild
+++ b/sci-mathematics/pari/pari-2.11.4.ebuild
@@ -61,7 +61,11 @@ src_configure() {
        # sysdatadir installs a pari.cfg stuff which is informative only.
        # It is supposed to be for "architecture-dependent" data.
        # It needs to be easily discoverable for downstream packages such as 
gp2c.
-       ./Configure \
+       # We set LD to "" so that it is set to the value of the compiler used
+       # which is how a normal end user is expected to configure it. pari's 
build
+       # system do not cope very well with a naked linker, it is expecting a
+       # compiler driver. See https://bugs.gentoo.org/722090
+       LD="" ./Configure \
                --prefix="${EPREFIX}"/usr \
                --datadir="${EPREFIX}/usr/share/${PN}" \
                --libdir="${EPREFIX}/usr/$(get_libdir)" \

Reply via email to