Merge pull request #1707 from marineam/glibc-rpcgen

glibc: ensure cross-rpcgen is compiled during the compile phase
This commit is contained in:
Michael Marineau 2016-01-05 12:14:19 -08:00
commit 4c467290b1

View File

@ -14,9 +14,21 @@ toolchain-glibc_src_compile() {
done
}
## COREOS: fix compilation of cross-rpcgen during compiler bootstrap
toolchain-glibc_headers_compile() {
[[ ${EAPI:-0} == [01] ]] && toolchain-glibc_headers_configure
tc-export_build_env
local builddir=$(builddir "headers")
cd "${builddir}"
emake -C "${S}/sunrpc" subdir=sunrpc objdir="${builddir}" \
"${builddir}/sunrpc/cross-rpcgen" || die "make cross-rpcgen failed"
}
eblit-glibc-src_compile() {
if just_headers ; then
[[ ${EAPI:-0} == [01] ]] && toolchain-glibc_headers_configure
export ABI=default
toolchain-glibc_headers_compile
return
fi