commit:     b38e0a0b22acc859251d038b55ee73c676fcf8e6
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 21 00:47:49 2022 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Wed Sep 21 00:59:34 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b38e0a0b

sci-mathematics/pari: bullet-proof DLLD detection.

We have another DLLD (compiler driver for shared libraries) detection
issue in bug 871117. We now force DLLD=$CC during ./Configure, which
should override the detection with the correct value more reliably.

Closes: https://bugs.gentoo.org/871117
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 sci-mathematics/pari/pari-2.15.0.ebuild | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/sci-mathematics/pari/pari-2.15.0.ebuild 
b/sci-mathematics/pari/pari-2.15.0.ebuild
index 38356d9374b4..212fed3f24df 100644
--- a/sci-mathematics/pari/pari-2.15.0.ebuild
+++ b/sci-mathematics/pari/pari-2.15.0.ebuild
@@ -74,13 +74,13 @@ src_configure() {
        fi
 
        # 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.
-       # 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 \
+       # It is supposed to be for "architecture-dependent" data.  It needs
+       # to be easily discoverable for downstream packages such as gp2c.
+       # We set LD="" and DLLD="$CC" so that the "shared library linker"
+       # always gets set to the value of the compiler used. Pari's build
+       # system does not cope very well with a naked linker, it is
+       # expecting a compiler driver. See bugs 722090 and 871117.
+       LD="" DLLD="$(tc-getCC)" ./Configure \
                --prefix="${EPREFIX}"/usr \
                --datadir="${EPREFIX}/usr/share/${PN}" \
                --libdir="${EPREFIX}/usr/$(get_libdir)" \

Reply via email to