commit:     2cdd21f573f85820be43dc8e2ca44730c269dcbe
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 29 02:13:01 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jul 29 02:13:25 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2cdd21f5

sci-libs/cdf: fully respect AR, CC

We were calling AR directly but also 'gcc'
as LD. Let's just use $(tc-getCC) as LD
given that's now the recommended way to
call the linker, and indeed, we use
incompatible arguments for ld anyway.

Closes: https://bugs.gentoo.org/725444
Closes: https://bugs.gentoo.org/792990
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/cdf/cdf-3.8.0-r1.ebuild | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sci-libs/cdf/cdf-3.8.0-r1.ebuild b/sci-libs/cdf/cdf-3.8.0-r1.ebuild
index 000c1d62d1a..5d8499adc51 100644
--- a/sci-libs/cdf/cdf-3.8.0-r1.ebuild
+++ b/sci-libs/cdf/cdf-3.8.0-r1.ebuild
@@ -59,7 +59,9 @@ src_compile() {
        PV_SO=${PV:0:1}
        emake \
                OS=linux \
+               AR=$(tc-getAR) \
                CC=$(tc-getCC) \
+               LD=$(tc-getCC) \
                ENV=gnu \
                SHARED=yes \
                SHAREDEXT_linux=so.${PV_SO} \

Reply via email to