From adcae1c8aa0f3af454895cff8c8eda59f48dd5da Mon Sep 17 00:00:00 2001 From: Stephan Hartmann Date: Sat, 12 Sep 2020 17:37:28 +0200 Subject: sys-apps/heirloom-tools: respect AR/RANLIB Closes: https://bugs.gentoo.org/725712 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Stephan Hartmann --- sys-apps/heirloom-tools/heirloom-tools-070715-r3.ebuild | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sys-apps/heirloom-tools') diff --git a/sys-apps/heirloom-tools/heirloom-tools-070715-r3.ebuild b/sys-apps/heirloom-tools/heirloom-tools-070715-r3.ebuild index 2c6c2ef18761..1374a47e8583 100644 --- a/sys-apps/heirloom-tools/heirloom-tools-070715-r3.ebuild +++ b/sys-apps/heirloom-tools/heirloom-tools-070715-r3.ebuild @@ -34,10 +34,18 @@ PATCHES=( # slightly broken RESTRICT="test" +src_prepare() { + default + + sed -i "s/\bar\b/$(tc-getAR)/g" libwchar/Makefile.mk || die +} + src_compile() { append-cppflags -D_GNU_SOURCE emake -j1 \ CC="$(tc-getCC)" \ + AR="$(tc-getAR)" \ + RANLIB="$(tc-getRANLIB)" \ CFLAGS="${CFLAGS}" \ CFLAGS2="${CFLAGS}" \ CFLAGSS="${CFLAGS}" \ -- cgit v1.2.3-65-gdbad