summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2022-03-27 17:45:50 +0200
committerMaciej Barć <xgqt@gentoo.org>2022-03-27 17:53:48 +0200
commit3c6a4d25077a40a7bd9aa8c2fb082bfe1cd02c1c (patch)
tree6f59fe3e5645e6b4668641c61733a2f07a69353d /dev-scheme/bigloo
parentdev-lua/luasocket: add 3.0.0 (diff)
downloadgentoo-3c6a4d25077a40a7bd9aa8c2fb082bfe1cd02c1c.tar.gz
gentoo-3c6a4d25077a40a7bd9aa8c2fb082bfe1cd02c1c.tar.bz2
gentoo-3c6a4d25077a40a7bd9aa8c2fb082bfe1cd02c1c.zip
dev-scheme/bigloo: respect AS, AR and RANLIB
Closes: https://bugs.gentoo.org/836246 Clsoes: https://bugs.gentoo.org/836247 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-scheme/bigloo')
-rw-r--r--dev-scheme/bigloo/bigloo-4.4c_p4-r1.ebuild20
1 files changed, 16 insertions, 4 deletions
diff --git a/dev-scheme/bigloo/bigloo-4.4c_p4-r1.ebuild b/dev-scheme/bigloo/bigloo-4.4c_p4-r1.ebuild
index e0bff03017b4..0d56b78e294e 100644
--- a/dev-scheme/bigloo/bigloo-4.4c_p4-r1.ebuild
+++ b/dev-scheme/bigloo/bigloo-4.4c_p4-r1.ebuild
@@ -54,13 +54,25 @@ BDEPEND="
DOCS=( ChangeLog README.md TODO.org )
SITEFILE="50${PN}-gentoo.el"
+src_prepare() {
+ default
+
+ sed -e "/^ar=/s|=|=\"$(tc-getAR)\"|" \
+ -e "/^ranlib=/s|=|=\"$(tc-getRANLIB)\"|" \
+ -i ./configure || die
+
+ sed "s|^ar |$(tc-getAR) |" -i ./autoconf/ranlib || die
+}
+
src_configure() {
tc-export AR AS CC CPP CXX LD
- export CFLAGS="${CFLAGS}"
- export LDFLAGS="${LDFLAGS}"
+ export CFLAGS
+ export LDFLAGS
- myconf=(
- # Compilation FLAGS
+ local myconf=(
+ # Compilation
+ --as="$(tc-getAS)"
+ --cc="$(tc-getCC)"
--cflags="${CFLAGS}"
--cpicflags="-fPIC"
--cwarningflags=""