From 065a42c61a7cc3cbc2fb4cc2f54ae7dc5d9debb8 Mon Sep 17 00:00:00 2001 From: Giacomo Tesio Date: Sat, 22 Apr 2017 18:25:06 +0200 Subject: [PATCH] newlib: set CPATH to cross compiler's includes --- cross/pkgs/newlib.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cross/pkgs/newlib.sh b/cross/pkgs/newlib.sh index 83a089d..575a4e7 100755 --- a/cross/pkgs/newlib.sh +++ b/cross/pkgs/newlib.sh @@ -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