diff --git a/cook.sh b/cook.sh index 242688365bf18fa7f7f0a5f1a8cc2500f35c265c..0de729bdae6078ad1a89836b0ae592cb4d1af08e 100755 --- a/cook.sh +++ b/cook.sh @@ -226,7 +226,7 @@ function op { fi popd > /dev/null ;; - prepare) + prepare) skip=0 if [ "$(type -t recipe_prepare)" = "function" ] then @@ -248,7 +248,7 @@ function op { pkg --target=$TARGET install --root sysroot "$REPO/$i.tar.gz" done fi - + rm -rf build cp -rp source build diff --git a/recipes/newlibtest/recipe.sh b/recipes/newlibtest/recipe.sh index 81024e5564f216c2aa0f741779ab211d6ce11c4a..fdbed7c511881811288f75f1738aa35dd2a0a4f8 100644 --- a/recipes/newlibtest/recipe.sh +++ b/recipes/newlibtest/recipe.sh @@ -15,8 +15,9 @@ function recipe_build { sysroot="${PWD}/../sysroot" export CC="${HOST}-gcc" export LD="${HOST}-ld" - export CFLAGS="-nostdinc -nostdlib -static $sysroot/lib/crt0.o" - export LIBS="-I $sysroot/include -L $sysroot/lib -lc -lm" + export CFLAGS="-static -nostdinc -I $sysroot/include -I /usr/lib/gcc/x86_64-unknown-redox/7.0.1/include/ -nostdlib -L $sysroot/lib" + export CRT="$sysroot/lib/crt0.o" + export CLIBS="-lc -lm" make all skip=1