mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 04:23:16 -04:00
net-libs/kcgi: Export CC and AR in src_prepare().
Build system falls back to hard-coded defaults otherwise. Closes: https://bugs.gentoo.org/785181 Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
This commit is contained in:
@@ -26,6 +26,13 @@ DEPEND="
|
||||
test? ( net-misc/curl[static-libs] )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
export CC="$(tc-getCC)"
|
||||
export AR="$(tc-getAR)"
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
./configure PREFIX="${EPREFIX}/usr" \
|
||||
MANDIR="${EPREFIX}/usr/share/man" \
|
||||
@@ -35,18 +42,15 @@ src_configure() {
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
bmake -j$(makeopts_jobs) \
|
||||
CC="$(tc-getCC)" || die
|
||||
bmake -j$(makeopts_jobs) || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
bmake -j$(makeopts_jobs) \
|
||||
CC="$(tc-getCC)" regress || die
|
||||
bmake -j$(makeopts_jobs) regress || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
bmake -j$(makeopts_jobs) \
|
||||
CC="$(tc-getCC)" \
|
||||
DESTDIR="${D}" \
|
||||
MANDIR=/usr/share/man \
|
||||
install || die
|
||||
|
||||
Reference in New Issue
Block a user