From 3c6a4d25077a40a7bd9aa8c2fb082bfe1cd02c1c Mon Sep 17 00:00:00 2001 From: Maciej Barć Date: Sun, 27 Mar 2022 17:45:50 +0200 Subject: dev-scheme/bigloo: respect AS, AR and RANLIB MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/836246 Clsoes: https://bugs.gentoo.org/836247 Signed-off-by: Maciej Barć --- dev-scheme/bigloo/bigloo-4.4c_p4-r1.ebuild | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'dev-scheme/bigloo') 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="" -- cgit v1.2.3-65-gdbad