1 |
commit: 3c6a4d25077a40a7bd9aa8c2fb082bfe1cd02c1c |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 27 15:45:50 2022 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 27 15:53:48 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c6a4d25 |
7 |
|
8 |
dev-scheme/bigloo: respect AS, AR and RANLIB |
9 |
|
10 |
Closes: https://bugs.gentoo.org/836246 |
11 |
Clsoes: https://bugs.gentoo.org/836247 |
12 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
13 |
|
14 |
dev-scheme/bigloo/bigloo-4.4c_p4-r1.ebuild | 20 ++++++++++++++++---- |
15 |
1 file changed, 16 insertions(+), 4 deletions(-) |
16 |
|
17 |
diff --git a/dev-scheme/bigloo/bigloo-4.4c_p4-r1.ebuild b/dev-scheme/bigloo/bigloo-4.4c_p4-r1.ebuild |
18 |
index e0bff03017b4..0d56b78e294e 100644 |
19 |
--- a/dev-scheme/bigloo/bigloo-4.4c_p4-r1.ebuild |
20 |
+++ b/dev-scheme/bigloo/bigloo-4.4c_p4-r1.ebuild |
21 |
@@ -54,13 +54,25 @@ BDEPEND=" |
22 |
DOCS=( ChangeLog README.md TODO.org ) |
23 |
SITEFILE="50${PN}-gentoo.el" |
24 |
|
25 |
+src_prepare() { |
26 |
+ default |
27 |
+ |
28 |
+ sed -e "/^ar=/s|=|=\"$(tc-getAR)\"|" \ |
29 |
+ -e "/^ranlib=/s|=|=\"$(tc-getRANLIB)\"|" \ |
30 |
+ -i ./configure || die |
31 |
+ |
32 |
+ sed "s|^ar |$(tc-getAR) |" -i ./autoconf/ranlib || die |
33 |
+} |
34 |
+ |
35 |
src_configure() { |
36 |
tc-export AR AS CC CPP CXX LD |
37 |
- export CFLAGS="${CFLAGS}" |
38 |
- export LDFLAGS="${LDFLAGS}" |
39 |
+ export CFLAGS |
40 |
+ export LDFLAGS |
41 |
|
42 |
- myconf=( |
43 |
- # Compilation FLAGS |
44 |
+ local myconf=( |
45 |
+ # Compilation |
46 |
+ --as="$(tc-getAS)" |
47 |
+ --cc="$(tc-getCC)" |
48 |
--cflags="${CFLAGS}" |
49 |
--cpicflags="-fPIC" |
50 |
--cwarningflags="" |