From 7771a83f18a703b9663f9b2e732ac66acc386171 Mon Sep 17 00:00:00 2001 From: Giacomo Tesio Date: Sun, 23 Apr 2017 13:35:01 +0200 Subject: [PATCH] newlib: set CPATH for coverity too --- cross/pkgs/newlib.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/cross/pkgs/newlib.sh b/cross/pkgs/newlib.sh index 83a089d..de05caf 100755 --- a/cross/pkgs/newlib.sh +++ b/cross/pkgs/newlib.sh @@ -50,14 +50,9 @@ if [ "$NEWLIB_OPTIMIZATION" = "" ]; then NEWLIB_OPTIMIZATION=2 fi -if [ "$TRAVIS_BUILD_DIR" != "" ]; then - # something weird happens on Travis-CI so that newlib requires - # explicit set of the HOST compiler or it will use the - # Jehanne cross compiler and try to run the executable on linux - # - # I can't understand why... - export CC=gcc -fi +export CC=gcc +export CPATH=$CROSS_DIR/lib/gcc/x86_64-jehanne/4.9.4/include:$CROSS_DIR/lib/gcc/x86_64-jehanne/4.9.4/include-fixed + # NOTE: we use -O0 because apparently vsprintf functions do not # work with -O2.