newlib: set CPATH to cross compiler's includes

This commit is contained in:
Giacomo Tesio 2017-04-22 18:25:06 +02:00
parent c5b3f320fa
commit 065a42c61a
1 changed files with 4 additions and 0 deletions

View File

@ -31,6 +31,10 @@ export NEWLIB_SRC=$NEWLIB/src/
export NEWLIB_BUILD=$NEWLIB/build/
export NEWLIB_PREFIX=$NEWLIB/output/
# since our cross compiler is inside the system root, we need this too
export CPATH=$CROSS_DIR/toolchain/lib/gcc/x86_64-jehanne/4.9.4/include:$CROSS_DIR/toolchain/lib/gcc/x86_64-jehanne/4.9.4/include-fixed"
function failOnError {
# $1 -> exit status on a previous command
# $2 -> task description