1 |
commit: 9ac9f8dfc1decbcd2b10565935252c72da807d51 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Sep 8 10:43:25 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 8 10:46:18 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9ac9f8df |
7 |
|
8 |
R-packages.eclass: pass AR via MAKEFLAGS |
9 |
|
10 |
Closes: https://bugs.gentoo.org/812113 |
11 |
Closes: https://bugs.gentoo.org/812110 |
12 |
Closes: https://bugs.gentoo.org/812107 |
13 |
Closes: https://bugs.gentoo.org/812104 |
14 |
Closes: https://bugs.gentoo.org/812101 |
15 |
Closes: https://bugs.gentoo.org/812098 |
16 |
Closes: https://bugs.gentoo.org/812095 |
17 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
18 |
|
19 |
eclass/R-packages.eclass | 4 ++-- |
20 |
1 file changed, 2 insertions(+), 2 deletions(-) |
21 |
|
22 |
diff --git a/eclass/R-packages.eclass b/eclass/R-packages.eclass |
23 |
index 5e1d6bccc..a072e5cc2 100644 |
24 |
--- a/eclass/R-packages.eclass |
25 |
+++ b/eclass/R-packages.eclass |
26 |
@@ -1,7 +1,7 @@ |
27 |
# Copyright 1999-2021 Gentoo Authors |
28 |
# Distributed under the terms of the GNU General Public License v2 |
29 |
|
30 |
-inherit eutils |
31 |
+inherit eutils toolchain-funcs |
32 |
|
33 |
EXPORT_FUNCTIONS src_unpack src_prepare src_compile src_install |
34 |
|
35 |
@@ -34,7 +34,7 @@ R-packages_src_prepare() { |
36 |
|
37 |
|
38 |
R-packages_src_compile() { |
39 |
- MAKEFLAGS="CFLAGS=${CFLAGS// /\\ } CXXFLAGS=${CXXFLAGS// /\\ } FFLAGS=${FFLAGS// /\\ } FCFLAGS=${FCFLAGS// /\\ } LDFLAGS=${LDFLAGS// /\\ }" R CMD INSTALL . -l "${WORKDIR}" "--byte-compile" || die |
40 |
+ MAKEFLAGS="AR=$(tc-getAR) CFLAGS=${CFLAGS// /\\ } CXXFLAGS=${CXXFLAGS// /\\ } FFLAGS=${FFLAGS// /\\ } FCFLAGS=${FCFLAGS// /\\ } LDFLAGS=${LDFLAGS// /\\ }" R CMD INSTALL . -l "${WORKDIR}" "--byte-compile" || die |
41 |
} |
42 |
|
43 |
R-packages_src_install() { |