compiler-rt: pass only env needed

Build compiler-rt how upstream Rust does it and don't rely on the entire
environment being passed to the build process.
This commit is contained in:
Doug Goldstein
2016-11-22 11:55:36 -06:00
parent 87f67e6d86
commit 19cdae76b8

View File

@@ -12,13 +12,14 @@ require rust-source-${PV}.inc
S = "${WORKDIR}/rustc-${PV}/src/compiler-rt"
# Pick up $CC from the environment
EXTRA_OEMAKE += "-e"
do_compile () {
oe_runmake -C ${S} \
ProjSrcRoot="${S}" \
ProjObjRoot="${B}" \
CC="${CC}" \
AR="${AR}" \
RANLIB="${RANLIB}" \
CFLAGS="${CFLAGS}" \
TargetTriple=${HOST_SYS} \
triple-builtins
}