From 2cdd21f573f85820be43dc8e2ca44730c269dcbe Mon Sep 17 00:00:00 2001 From: Sam James Date: Thu, 29 Jul 2021 03:13:01 +0100 Subject: 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 --- sci-libs/cdf/cdf-3.8.0-r1.ebuild | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sci-libs/cdf') diff --git a/sci-libs/cdf/cdf-3.8.0-r1.ebuild b/sci-libs/cdf/cdf-3.8.0-r1.ebuild index 000c1d62d1a9..5d8499adc51c 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} \ -- cgit v1.2.3-65-gdbad