diff options
author | Maciej Barć <xgqt@gentoo.org> | 2022-03-27 17:45:50 +0200 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2022-03-27 17:53:48 +0200 |
commit | 3c6a4d25077a40a7bd9aa8c2fb082bfe1cd02c1c (patch) | |
tree | 6f59fe3e5645e6b4668641c61733a2f07a69353d /dev-scheme | |
parent | dev-lua/luasocket: add 3.0.0 (diff) | |
download | gentoo-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')
-rw-r--r-- | dev-scheme/bigloo/bigloo-4.4c_p4-r1.ebuild | 20 |
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="" |