mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 22:47:14 -08:00
sys-apps/s6-linux-init: respect AR, CC and RANLIB
Signed-off-by: Petr Vaněk <arkamar@atlas.cz> Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Generates an init binary for s6-based init systems"
|
||||
HOMEPAGE="https://www.skarnet.org/software/s6-linux-init/"
|
||||
SRC_URI="https://www.skarnet.org/software/${PN}/${P}.tar.gz"
|
||||
@@ -32,9 +34,13 @@ src_prepare() {
|
||||
# Avoid QA warning for LDFLAGS addition; avoid overriding -fstack-protector
|
||||
sed -i -e 's/.*-Wl,--hash-style=both$/:/' -e '/-fno-stack-protector$/d' \
|
||||
configure || die
|
||||
|
||||
sed -i -e '/AR := /d' -e '/RANLIB := /d' Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
tc-export AR CC RANLIB
|
||||
|
||||
econf \
|
||||
--bindir=/bin \
|
||||
--dynlibdir=/usr/$(get_libdir) \
|
||||
|
||||
Reference in New Issue
Block a user